9 references to PartCreationPolicyMetadataName
System.ComponentModel.Composition (9)
System\ComponentModel\Composition\AttributedModel\AttributedExportDefinition.cs (2)
49if (partMetadata != null && partMetadata.TryGetValue(CompositionConstants.PartCreationPolicyMetadataName, out object? value)) 51metadata.Add(CompositionConstants.PartCreationPolicyMetadataName, value);
System\ComponentModel\Composition\ConstraintServices.cs (3)
99Expression.Not(CreateMetadataContainsKeyExpression(parameter, CompositionConstants.PartCreationPolicyMetadataName)), 100CreateMetadataValueEqualsExpression(parameter, CreationPolicy.Any, CompositionConstants.PartCreationPolicyMetadataName)), 101CreateMetadataValueEqualsExpression(parameter, policy, CompositionConstants.PartCreationPolicyMetadataName));
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogExport.cs (1)
65CreationPolicy partPolicy = partDefinition.Metadata.GetValue<CreationPolicy>(CompositionConstants.PartCreationPolicyMetadataName);
System\ComponentModel\Composition\Hosting\CompositionServices.cs (2)
23CompositionConstants.PartCreationPolicyMetadataName 191dictionary.Add(CompositionConstants.PartCreationPolicyMetadataName, creationPolicy);
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (1)
355CreationPolicy exportPolicy = definition.Metadata.GetValue<CreationPolicy>(CompositionConstants.PartCreationPolicyMetadataName);