ImportAttribute::RequiredCreationPolicy Property
.NET Framework (current version)
Gets or sets a value that indicates that the importer requires a specific CreationPolicy for the exports used to satisfy this import.
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
public: property CreationPolicy RequiredCreationPolicy { virtual CreationPolicy get() sealed; virtual void set(CreationPolicy value) sealed; }
Property Value
Type: System.ComponentModel.Composition::CreationPolicyOne of the following values:
Any, if the importer does not require a specific CreationPolicy. This is the default.
Shared to require that all used exports be shared by all parts in the container.
NonShared to require that all used exports be non-shared in a container. In this case, each part receives their own instance.
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Show: