AggregateExportProvider Constructor (IEnumerable(ExportProvider))
Collapse the table of content
Expand the table of content

AggregateExportProvider Constructor (IEnumerable<ExportProvider>)

 

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:
© 2016 Microsoft