Sdílet prostřednictvím


ContractBasedImportDefinition.RequiredCreationPolicy Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that indicates that the importer requires a specific CreationPolicy for the exports used to satisfy this import.

Namespace:  System.ComponentModel.Composition.Primitives
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property RequiredCreationPolicy As CreationPolicy
public virtual CreationPolicy RequiredCreationPolicy { get; }

Property Value

Type: System.ComponentModel.Composition.CreationPolicy
One of the following values:
Any , if the importer does not require a specific CreationPolicy.
Shared to require that all exports used should be shared by all importers in the container.
NonShared to require that all exports used should be non-shared in the container. In this case, each importer receives a separate instance.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.