AggregateExportProvider 建構函式

定義

初始化 AggregateExportProvider 類別的新執行個體。Initializes a new instance of the AggregateExportProvider class.

多載

AggregateExportProvider(IEnumerable<ExportProvider>)

初始化 AggregateExportProvider 類別的新執行個體。Initializes a new instance of the AggregateExportProvider class.

AggregateExportProvider(ExportProvider[])

初始化 AggregateExportProvider 類別的新執行個體。Initializes a new instance of the AggregateExportProvider class.

AggregateExportProvider(IEnumerable<ExportProvider>)

初始化 AggregateExportProvider 類別的新執行個體。Initializes a new instance of the AggregateExportProvider class.

public:
 AggregateExportProvider(System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Hosting::ExportProvider ^> ^ providers);
public AggregateExportProvider (System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Hosting.ExportProvider> providers);
new System.ComponentModel.Composition.Hosting.AggregateExportProvider : seq<System.ComponentModel.Composition.Hosting.ExportProvider> -> System.ComponentModel.Composition.Hosting.AggregateExportProvider
Public Sub New (providers As IEnumerable(Of ExportProvider))

參數

providers
IEnumerable<ExportProvider>

匯出提供者的優先順序排列清單。The prioritized list of export providers. 提供者會依它們提供的順序來查閱。The providers are consulted in the order in which they are supplied.

例外狀況

providers 的一個或多個項目為 nullOne or more elements of providers are null.

備註

類別會依其在呼叫GetExports時所指定的順序來查閱提供者。 AggregateExportProviderThe AggregateExportProvider class consults the providers in the order in which they have been specified when it calls GetExports.

AggregateExportProvider不會取得指定之提供者的擁有權。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.

AggregateExportProvider(ExportProvider[])

初始化 AggregateExportProvider 類別的新執行個體。Initializes a new instance of the AggregateExportProvider class.

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

參數

providers
ExportProvider[]

匯出提供者的優先順序排列清單。The prioritized list of export providers.

例外狀況

providers 包含是 null 的項目。providers contains an element that is null.

備註

類別會依其在呼叫GetExports時所指定的順序來查閱提供者。 AggregateExportProviderThe AggregateExportProvider class consults the providers in the order in which they have been specified when it calls GetExports.

AggregateExportProvider不會取得指定之提供者的擁有權。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.

適用於