ImportManyAttribute.RequiredCreationPolicy Property

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
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public CreationPolicy RequiredCreationPolicy { get; set; }

Property Value

Type: System.ComponentModel.Composition.CreationPolicy
One 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.


Supported in: 5, 4

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

Community Additions