CompositionHost Class

.NET Framework (current version)
 

Assembles a lightweight composition container from specified providers.

Namespace:   System.Composition.Hosting
Assembly:  System.Composition.Hosting (in System.Composition.Hosting.dll)


public ref class CompositionHost sealed : CompositionContext, 
	IDisposable

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateCompositionHost(array<ExportDescriptorProvider^>^)

Creates the composition host with the specified array of providers.

System_CAPS_pubmethodSystem_CAPS_staticCreateCompositionHost(IEnumerable<ExportDescriptorProvider^>^)

Creates the composition host with the specified collection of providers.

System_CAPS_pubmethodDispose()

Releases the host and any globally shared parts.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodGetExport(CompositionContract^)

Returns the export that matches the specified contract.(Inherited from CompositionContext.)

System_CAPS_pubmethodGetExport(Type^)

Returns the export that matches the specified type.(Inherited from CompositionContext.)

System_CAPS_pubmethodGetExport(Type^, String^)

Returns the export that matches the specified name and type.(Inherited from CompositionContext.)

System_CAPS_pubmethodGetExport<TExport>()

Returns the export that matches the specified generic type parameter.(Inherited from CompositionContext.)

System_CAPS_pubmethodGetExport<TExport>(String^)

Returns the export that matches the specified generic type parameter and contract name.(Inherited from CompositionContext.)

System_CAPS_pubmethodGetExports(Type^)

Returns a collection of all exports that match the specified type.(Inherited from CompositionContext.)

System_CAPS_pubmethodGetExports(Type^, String^)

Returns all exports that match the specified contract name and type.(Inherited from CompositionContext.)

System_CAPS_pubmethodGetExports<TExport>()

Returns all exports that match the specified generic type parameter.(Inherited from CompositionContext.)

System_CAPS_pubmethodGetExports<TExport>(String^)

Returns all exports that match the specified generic type parameter and contract name.(Inherited from CompositionContext.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetExport(CompositionContract^, Object^)

Retrieves the specified export from the composition context.(Overrides CompositionContext::TryGetExport(CompositionContract^, Object^).)

System_CAPS_pubmethodTryGetExport(Type^, Object^)

Returns the export that matches the specified type, or returns null if no match is found.(Inherited from CompositionContext.)

System_CAPS_pubmethodTryGetExport(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.)

System_CAPS_pubmethodTryGetExport<TExport>(TExport)

Returns the export that matches the specified generic type parameter, or returns null if no match is found.(Inherited from CompositionContext.)

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

NameDescription
System_CAPS_pubmethodSatisfyImports(Object^)

Overloaded. Satisfies the imports of the specified object from the specified context.(Defined by CompositionContextExtensions.)

System_CAPS_pubmethodSatisfyImports(Object^, AttributedModelProvider^)

Overloaded. Satisfies the imports of the specified object from the specified context, using the specified conventions.(Defined by CompositionContextExtensions.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: