CompositionHost Class
Assembles a lightweight composition container from specified providers.
Assembly: System.Composition.Hosting (in System.Composition.Hosting.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | CreateCompositionHost(array<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 host and any globally shared parts. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | GetExport(CompositionContract^) | Returns the export that matches the specified contract.(Inherited from CompositionContext.) |
![]() | GetExport(Type^) | Returns the export that matches the specified type.(Inherited from CompositionContext.) |
![]() | GetExport(Type^, String^) | Returns the export that matches the specified name and type.(Inherited from CompositionContext.) |
![]() | GetExport<TExport>() | Returns the export that matches the specified generic type parameter.(Inherited from CompositionContext.) |
![]() | GetExport<TExport>(String^) | Returns the export that matches the specified generic type parameter and contract name.(Inherited from CompositionContext.) |
![]() | GetExports(Type^) | Returns a collection of all exports that match the specified type.(Inherited from CompositionContext.) |
![]() | GetExports(Type^, String^) | Returns all exports that match the specified contract name and type.(Inherited from CompositionContext.) |
![]() | GetExports<TExport>() | Returns all exports that match the specified generic type parameter.(Inherited from CompositionContext.) |
![]() | GetExports<TExport>(String^) | Returns all exports that match the specified generic type parameter and contract name.(Inherited from CompositionContext.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
![]() | TryGetExport(CompositionContract^, Object^) | Retrieves the specified export from the composition context.(Overrides CompositionContext::TryGetExport(CompositionContract^, 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^) | Returns the export that matches the specified contract name and type, 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.) |
![]() | 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.) |
| Name | Description | |
|---|---|---|
![]() | SatisfyImports(Object^) | Overloaded. Satisfies the imports of the specified object from the specified context.(Defined by CompositionContextExtensions.) |
![]() | SatisfyImports(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.

