CompositionHost.CreateCompositionHost 方法

定義

多載

CreateCompositionHost(IEnumerable<ExportDescriptorProvider>)

使用指定之集合提供者,建立組合主機。Creates the composition host with the specified collection of providers.

CreateCompositionHost(ExportDescriptorProvider[])

使用指定之陣列提供者,建立組合主機。Creates the composition host with the specified array of providers.

CreateCompositionHost(IEnumerable<ExportDescriptorProvider>)

使用指定之集合提供者,建立組合主機。Creates the composition host with the specified collection of providers.

public:
 static System::Composition::Hosting::CompositionHost ^ CreateCompositionHost(System::Collections::Generic::IEnumerable<System::Composition::Hosting::Core::ExportDescriptorProvider ^> ^ providers);
public static System.Composition.Hosting.CompositionHost CreateCompositionHost (System.Collections.Generic.IEnumerable<System.Composition.Hosting.Core.ExportDescriptorProvider> providers);
static member CreateCompositionHost : seq<System.Composition.Hosting.Core.ExportDescriptorProvider> -> System.Composition.Hosting.CompositionHost
Public Shared Function CreateCompositionHost (providers As IEnumerable(Of ExportDescriptorProvider)) As CompositionHost

參數

providers
IEnumerable<ExportDescriptorProvider>

提供者,包含所組成組件的匯出描述。The providers, which contain export descriptions for the parts being composed.

傳回

建立的組合主機。The created composition host.

CreateCompositionHost(ExportDescriptorProvider[])

使用指定之陣列提供者,建立組合主機。Creates the composition host with the specified array of providers.

public:
 static System::Composition::Hosting::CompositionHost ^ CreateCompositionHost(... cli::array <System::Composition::Hosting::Core::ExportDescriptorProvider ^> ^ providers);
public static System.Composition.Hosting.CompositionHost CreateCompositionHost (params System.Composition.Hosting.Core.ExportDescriptorProvider[] providers);
static member CreateCompositionHost : System.Composition.Hosting.Core.ExportDescriptorProvider[] -> System.Composition.Hosting.CompositionHost
Public Shared Function CreateCompositionHost (ParamArray providers As ExportDescriptorProvider()) As CompositionHost

參數

providers
ExportDescriptorProvider[]

提供者,包含所組成組件的匯出描述。The providers, which contain export descriptions for the parts being composed.

傳回

建立的組合主機。The created composition host.

適用於