24 references to Any
System.ComponentModel.Composition (23)
System\ComponentModel\Composition\ConstraintServices.cs (3)
45if (requiredCreationPolicy != CreationPolicy.Any) 88if (policy == CreationPolicy.Any) 100CreateMetadataValueEqualsExpression(parameter, CreationPolicy.Any, CompositionConstants.PartCreationPolicyMetadataName)),
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogExport.cs (2)
88case CreationPolicy.Any: 90if (importPolicy == CreationPolicy.Any ||
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeFactoryExport.cs (1)
56Export? export = childContainer.CatalogExportProvider.CreateExport(_scopeFactoryExport.UnderlyingPartDefinition, _scopeFactoryExport.UnderlyingExportDefinition, false, CreationPolicy.Any);
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (2)
106CreationPolicy.Any, 110case CreationPolicy.Any:
System\ComponentModel\Composition\Hosting\CompositionServices.cs (2)
189if (creationPolicy != CreationPolicy.Any) 600return CreationPolicy.Any;
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (1)
809return new ContractBasedImportDefinition(contractName, requiredTypeIdentity, requiredMetadata, cardinality, false, true, CreationPolicy.Any, metadata);
System\ComponentModel\Composition\ImportAttribute.cs (1)
155/// <see cref="CreationPolicy.Any"/> - default value, used if the importer doesn't
System\ComponentModel\Composition\ImportManyAttribute.cs (1)
133/// <see cref="CreationPolicy.Any"/> - default value, used if the importer doesn't
System\ComponentModel\Composition\PartCreationPolicyAttribute.cs (2)
12internal static readonly PartCreationPolicyAttribute Default = new PartCreationPolicyAttribute(CreationPolicy.Any); 29/// <see cref="System.ComponentModel.Composition.CreationPolicy.Any"/>.
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (7)
26private readonly CreationPolicy _requiredCreationPolicy = CreationPolicy.Any; 84/// pass the default <see cref="CreationPolicy.Any"/>. 145/// pass the default <see cref="CreationPolicy.Any"/>. 241/// <see cref="CreationPolicy.Any"/> - default value, used if the importer doesn't 350if (RequiredCreationPolicy == CreationPolicy.Any) 356return exportPolicy == CreationPolicy.Any || 366if (_requiredCreationPolicy != CreationPolicy.Any)
System\ComponentModel\Composition\ReflectionModel\PartCreatorParameterImportDefinition.cs (1)
21productImportDefinition.RequiredMetadata, productImportDefinition.Cardinality, CreationPolicy.Any, MetadataServices.EmptyMetadata, origin)
System.ComponentModel.Composition.Registration (1)
System\ComponentModel\Composition\Registration\PartBuilder.cs (1)
38_creationPolicy = CreationPolicy.Any;