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
CompositionHost
Implements

Methods

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.

Dispose()

Releases the composition host and any globally shared parts.

Equals(Object)

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

(Inherited from Object)
GetExport(CompositionContract)

Retrieves the export that matches the specified contract.

(Inherited from CompositionContext)
GetExport(Type)

Retrieves the export that matches the specified type.

(Inherited from CompositionContext)
GetExport(Type, String)

Retrieves the export that matches the specified name and type.

(Inherited from CompositionContext)
GetExport<TExport>()

Retrieves the export that matches the specified generic type parameter.

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

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

(Inherited from CompositionContext)
GetExports(Type)

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

(Inherited from CompositionContext)
GetExports(Type, String)

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

(Inherited from CompositionContext)
GetExports<TExport>()

Retrieves all exports that match the specified generic type parameter.

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

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

(Inherited from CompositionContext)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryGetExport(CompositionContract, Object)

Retrieves the specified export from the composition context.

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)

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)

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)

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)

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

SatisfyImports(CompositionContext, Object, AttributedModelProvider)

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

Applies to