AggregateExportProvider Constructor (IEnumerable<ExportProvider>)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the AggregateExportProvider class.

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

public AggregateExportProvider(
	IEnumerable<ExportProvider> providers
)

Parameters

providers
Type: System.Collections.Generic.IEnumerable<ExportProvider>

The prioritized list of export providers. The providers are consulted in the order in which they are supplied.

Exception Condition
ArgumentException

One or more elements of providers are null.

The AggregateExportProvider class consults the providers in the order in which they have been specified when it calls GetExports.

The AggregateExportProvider does not take ownership of the specified providers. That is, it tries to dispose of any of the providers when it is disposed.

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Return to top
Show: