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