CompositionContainer CompositionContainer CompositionContainer CompositionContainer Constructors

Definition

Overloads

CompositionContainer() CompositionContainer() CompositionContainer()

Initializes a new instance of the CompositionContainer class.

CompositionContainer(ExportProvider[]) CompositionContainer(ExportProvider[]) CompositionContainer(ExportProvider[]) CompositionContainer(ExportProvider[])

Initializes a new instance of the CompositionContainer class with the specified export providers.

CompositionContainer(CompositionOptions, ExportProvider[]) CompositionContainer(CompositionOptions, ExportProvider[]) CompositionContainer(CompositionOptions, ExportProvider[])

Initializes a new instance of the CompositionContainer class with the specified export providers and options.

CompositionContainer(ComposablePartCatalog, ExportProvider[]) CompositionContainer(ComposablePartCatalog, ExportProvider[]) CompositionContainer(ComposablePartCatalog, ExportProvider[]) CompositionContainer(ComposablePartCatalog, ExportProvider[])

Initializes a new instance of the CompositionContainer class with the specified catalog and export providers.

CompositionContainer(ComposablePartCatalog, Boolean, ExportProvider[]) CompositionContainer(ComposablePartCatalog, Boolean, ExportProvider[]) CompositionContainer(ComposablePartCatalog, Boolean, ExportProvider[]) CompositionContainer(ComposablePartCatalog, Boolean, ExportProvider[])

Initializes a new instance of the CompositionContainer class with the specified catalog, thread-safe mode, and export providers.

CompositionContainer(ComposablePartCatalog, CompositionOptions, ExportProvider[]) CompositionContainer(ComposablePartCatalog, CompositionOptions, ExportProvider[]) CompositionContainer(ComposablePartCatalog, CompositionOptions, ExportProvider[])

Initializes a new instance of the CompositionContainer class with the specified catalog, options, and export providers.

CompositionContainer() CompositionContainer() CompositionContainer()

Initializes a new instance of the CompositionContainer class.

public:
 CompositionContainer();
public CompositionContainer ();
Public Sub New ()

CompositionContainer(ExportProvider[]) CompositionContainer(ExportProvider[]) CompositionContainer(ExportProvider[]) CompositionContainer(ExportProvider[])

Initializes a new instance of the CompositionContainer class with the specified export providers.

public:
 CompositionContainer(... cli::array <System::ComponentModel::Composition::Hosting::ExportProvider ^> ^ providers);
public CompositionContainer (params System.ComponentModel.Composition.Hosting.ExportProvider[] providers);
new System.ComponentModel.Composition.Hosting.CompositionContainer : System.ComponentModel.Composition.Hosting.ExportProvider[] -> System.ComponentModel.Composition.Hosting.CompositionContainer
Public Sub New (ParamArray providers As ExportProvider())

Parameters

providers
ExportProvider[]

An array of ExportProvider objects that provide the CompositionContainer access to Export objects, or null to set Providers to an empty ReadOnlyCollection<T>.

Exceptions

providers contains an element that is null.

CompositionContainer(CompositionOptions, ExportProvider[]) CompositionContainer(CompositionOptions, ExportProvider[]) CompositionContainer(CompositionOptions, ExportProvider[])

Initializes a new instance of the CompositionContainer class with the specified export providers and options.

public:
 CompositionContainer(System::ComponentModel::Composition::Hosting::CompositionOptions compositionOptions, ... cli::array <System::ComponentModel::Composition::Hosting::ExportProvider ^> ^ providers);
public CompositionContainer (System.ComponentModel.Composition.Hosting.CompositionOptions compositionOptions, params System.ComponentModel.Composition.Hosting.ExportProvider[] providers);
new System.ComponentModel.Composition.Hosting.CompositionContainer : System.ComponentModel.Composition.Hosting.CompositionOptions * System.ComponentModel.Composition.Hosting.ExportProvider[] -> System.ComponentModel.Composition.Hosting.CompositionContainer

Parameters

compositionOptions
CompositionOptions CompositionOptions CompositionOptions CompositionOptions

An object that specifies the behavior of this container.

providers
ExportProvider[]

An array of ExportProvider objects that provide the CompositionContainer access to Export objects, or null to set Providers to an empty ReadOnlyCollection<T>.

Exceptions

providers contains an element that is null.

CompositionContainer(ComposablePartCatalog, ExportProvider[]) CompositionContainer(ComposablePartCatalog, ExportProvider[]) CompositionContainer(ComposablePartCatalog, ExportProvider[]) CompositionContainer(ComposablePartCatalog, ExportProvider[])

Initializes a new instance of the CompositionContainer class with the specified catalog and export providers.

public:
 CompositionContainer(System::ComponentModel::Composition::Primitives::ComposablePartCatalog ^ catalog, ... cli::array <System::ComponentModel::Composition::Hosting::ExportProvider ^> ^ providers);
public CompositionContainer (System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog, params System.ComponentModel.Composition.Hosting.ExportProvider[] providers);
new System.ComponentModel.Composition.Hosting.CompositionContainer : System.ComponentModel.Composition.Primitives.ComposablePartCatalog * System.ComponentModel.Composition.Hosting.ExportProvider[] -> System.ComponentModel.Composition.Hosting.CompositionContainer
Public Sub New (catalog As ComposablePartCatalog, ParamArray providers As ExportProvider())

Parameters

providers
ExportProvider[]

An array of ExportProvider objects that provide the CompositionContainer access to Export objects, or null to set Providers to an empty ReadOnlyCollection<T>.

Exceptions

providers contains an element that is null.

CompositionContainer(ComposablePartCatalog, Boolean, ExportProvider[]) CompositionContainer(ComposablePartCatalog, Boolean, ExportProvider[]) CompositionContainer(ComposablePartCatalog, Boolean, ExportProvider[]) CompositionContainer(ComposablePartCatalog, Boolean, ExportProvider[])

Initializes a new instance of the CompositionContainer class with the specified catalog, thread-safe mode, and export providers.

public:
 CompositionContainer(System::ComponentModel::Composition::Primitives::ComposablePartCatalog ^ catalog, bool isThreadSafe, ... cli::array <System::ComponentModel::Composition::Hosting::ExportProvider ^> ^ providers);
public CompositionContainer (System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog, bool isThreadSafe, params System.ComponentModel.Composition.Hosting.ExportProvider[] providers);
new System.ComponentModel.Composition.Hosting.CompositionContainer : System.ComponentModel.Composition.Primitives.ComposablePartCatalog * bool * System.ComponentModel.Composition.Hosting.ExportProvider[] -> System.ComponentModel.Composition.Hosting.CompositionContainer
Public Sub New (catalog As ComposablePartCatalog, isThreadSafe As Boolean, ParamArray providers As ExportProvider())

Parameters

isThreadSafe
Boolean Boolean Boolean Boolean

true if this CompositionContainer object must be thread-safe; otherwise, false.

providers
ExportProvider[]

An array of ExportProvider objects that provide the CompositionContainer access to Export objects, or null to set the Providers property to an empty ReadOnlyCollection<T>.

Exceptions

One or more elements of providers are null.

Remarks

A CompositionContainer object that can be accessed from multiple threads must set the isThreadSafe parameter to true. Performance will be slightly slower when isThreadSafe is true, so we recommend that you set this parameter to false in single-threaded scenarios. The default is false.

CompositionContainer(ComposablePartCatalog, CompositionOptions, ExportProvider[]) CompositionContainer(ComposablePartCatalog, CompositionOptions, ExportProvider[]) CompositionContainer(ComposablePartCatalog, CompositionOptions, ExportProvider[])

Initializes a new instance of the CompositionContainer class with the specified catalog, options, and export providers.

public:
 CompositionContainer(System::ComponentModel::Composition::Primitives::ComposablePartCatalog ^ catalog, System::ComponentModel::Composition::Hosting::CompositionOptions compositionOptions, ... cli::array <System::ComponentModel::Composition::Hosting::ExportProvider ^> ^ providers);
public CompositionContainer (System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog, System.ComponentModel.Composition.Hosting.CompositionOptions compositionOptions, params System.ComponentModel.Composition.Hosting.ExportProvider[] providers);
new System.ComponentModel.Composition.Hosting.CompositionContainer : System.ComponentModel.Composition.Primitives.ComposablePartCatalog * System.ComponentModel.Composition.Hosting.CompositionOptions * System.ComponentModel.Composition.Hosting.ExportProvider[] -> System.ComponentModel.Composition.Hosting.CompositionContainer

Parameters

compositionOptions
CompositionOptions CompositionOptions CompositionOptions CompositionOptions

An object that specifies options that affect the behavior of the container.

providers
ExportProvider[]

An array of ExportProvider objects that provide the CompositionContainer access to Export objects, or null to set Providers to an empty ReadOnlyCollection<T>.

Exceptions

providers contains an element that is null.

Applies to