CompositionHost CompositionHost CompositionHost CompositionHost Class

Definition

A lightweight composition container that is assembled from specified providers.

public ref class CompositionHost sealed : System::Composition::CompositionContext, IDisposable
public sealed class CompositionHost : System.Composition.CompositionContext, IDisposable
type CompositionHost = class
    inherit CompositionContext
    interface IDisposable
Public NotInheritable Class CompositionHost
Inherits CompositionContext
Implements IDisposable
Inheritance
Implements

Methods

CreateCompositionHost(ExportDescriptorProvider[]) CreateCompositionHost(ExportDescriptorProvider[]) CreateCompositionHost(ExportDescriptorProvider[]) CreateCompositionHost(ExportDescriptorProvider[])

Creates the composition host with the specified array of providers.

CreateCompositionHost(IEnumerable<ExportDescriptorProvider>) CreateCompositionHost(IEnumerable<ExportDescriptorProvider>) CreateCompositionHost(IEnumerable<ExportDescriptorProvider>) CreateCompositionHost(IEnumerable<ExportDescriptorProvider>)

Creates the composition host with the specified collection of providers.

Dispose() Dispose() Dispose() Dispose()

Releases the composition host and any globally shared parts.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetExport(CompositionContract) GetExport(CompositionContract) GetExport(CompositionContract) GetExport(CompositionContract)

Retrieves the export that matches the specified contract.

(Inherited from CompositionContext)
GetExport(Type) GetExport(Type) GetExport(Type) GetExport(Type)

Retrieves the export that matches the specified type.

(Inherited from CompositionContext)
GetExport(Type, String) GetExport(Type, String) GetExport(Type, String) GetExport(Type, String)

Retrieves the export that matches the specified name and type.

(Inherited from CompositionContext)
GetExport<TExport>() GetExport<TExport>() GetExport<TExport>() GetExport<TExport>()

Retrieves the export that matches the specified generic type parameter.

(Inherited from CompositionContext)
GetExport<TExport>(String) GetExport<TExport>(String) GetExport<TExport>(String) GetExport<TExport>(String)

Retrieves the export that matches the specified generic type parameter and contract name.

(Inherited from CompositionContext)
GetExports(Type) GetExports(Type) GetExports(Type) GetExports(Type)

Retrieves a collection of all exports that match the specified type.

(Inherited from CompositionContext)
GetExports(Type, String) GetExports(Type, String) GetExports(Type, String) GetExports(Type, String)

Retrieves all exports that match the specified contract name and type.

(Inherited from CompositionContext)
GetExports<TExport>() GetExports<TExport>() GetExports<TExport>() GetExports<TExport>()

Retrieves all exports that match the specified generic type parameter.

(Inherited from CompositionContext)
GetExports<TExport>(String) GetExports<TExport>(String) GetExports<TExport>(String) GetExports<TExport>(String)

Retrieves all exports that match the specified generic type parameter and contract name.

(Inherited from CompositionContext)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryGetExport(CompositionContract, Object) TryGetExport(CompositionContract, Object) TryGetExport(CompositionContract, Object) TryGetExport(CompositionContract, Object)

Retrieves the specified export from the composition context.

TryGetExport(Type, Object) TryGetExport(Type, Object) TryGetExport(Type, Object) TryGetExport(Type, Object)

Returns the export that matches the specified type, or returns null if no match is found.

(Inherited from CompositionContext)
TryGetExport(Type, String, Object) TryGetExport(Type, String, Object) TryGetExport(Type, String, Object) TryGetExport(Type, String, Object)

Returns the export that matches the specified contract name and type, or returns null if no match is found.

(Inherited from CompositionContext)
TryGetExport<TExport>(String, TExport) TryGetExport<TExport>(String, TExport) TryGetExport<TExport>(String, TExport) TryGetExport<TExport>(String, TExport)

Returns the export that matches the specified generic type parameter and contract name, or returns null if no match is found.

(Inherited from CompositionContext)
TryGetExport<TExport>(TExport) TryGetExport<TExport>(TExport) TryGetExport<TExport>(TExport) TryGetExport<TExport>(TExport)

Returns the export that matches the specified generic type parameter, or returns null if no match is found.

(Inherited from CompositionContext)

Extension Methods

SatisfyImports(CompositionContext, Object) SatisfyImports(CompositionContext, Object) SatisfyImports(CompositionContext, Object) SatisfyImports(CompositionContext, Object)

Satisfies the imports of the specified object from the specified context.

SatisfyImports(CompositionContext, Object, AttributedModelProvider) SatisfyImports(CompositionContext, Object, AttributedModelProvider) SatisfyImports(CompositionContext, Object, AttributedModelProvider) SatisfyImports(CompositionContext, Object, AttributedModelProvider)

Satisfies the imports of the specified object from the specified context, using the specified conventions.

Applies to