Condividi tramite


CompositionHost.CreateCompositionHost Method

Definition

Overloads

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>)

Source:
CompositionHost.cs
Source:
CompositionHost.cs
Source:
CompositionHost.cs

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

Parameters

providers
IEnumerable<ExportDescriptorProvider>

The providers, which contain export descriptions for the parts being composed.

Returns

The created composition host.

Applies to

CreateCompositionHost(ExportDescriptorProvider[])

Source:
CompositionHost.cs
Source:
CompositionHost.cs
Source:
CompositionHost.cs

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

Parameters

providers
ExportDescriptorProvider[]

The providers, which contain export descriptions for the parts being composed.

Returns

The created composition host.

Applies to