CompositionContainer Constructor (ComposablePartCatalog, ExportProvider[])

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

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

public CompositionContainer(
	ComposablePartCatalog catalog,
	params ExportProvider[] providers
)

Parameters

catalog
Type: System.ComponentModel.Composition.Primitives.ComposablePartCatalog
A catalog that provides Export objects to the CompositionContainer.
providers
Type: System.ComponentModel.Composition.Hosting.ExportProvider[]
An array of ExportProvider objects that provide the CompositionContainer access to Export objects, or null to set Providers to an empty ReadOnlyCollection<T>.

ExceptionCondition
ArgumentException

providers contains an element that is null.

Silverlight

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

ADD
Show: