CompositionContext Class
Provides methods to retrieve exports from the composition.
Assembly: System.Composition.Runtime (in System.Composition.Runtime.dll)
System.Composition::CompositionContext
System.Composition.Hosting::CompositionHost
System.Composition.Hosting.Core::LifetimeContext
| Name | Description | |
|---|---|---|
![]() | CompositionContext() | Initializes a new instance of the CompositionContext class. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetExport(CompositionContract^) | Returns the export that matches the specified contract. |
![]() | GetExport(Type^) | Returns the export that matches the specified type. |
![]() | GetExport(Type^, String^) | Returns the export that matches the specified name and type. |
![]() | GetExport<TExport>() | Returns the export that matches the specified generic type parameter. |
![]() | GetExport<TExport>(String^) | Returns the export that matches the specified generic type parameter and contract name. |
![]() | GetExports(Type^) | Returns a collection of all exports that match the specified type. |
![]() | GetExports(Type^, String^) | Returns all exports that match the specified contract name and type. |
![]() | GetExports<TExport>() | Returns all exports that match the specified generic type parameter. |
![]() | GetExports<TExport>(String^) | Returns all exports that match the specified generic type parameter and contract name. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
![]() | TryGetExport(CompositionContract^, Object^) | Returns the export that matches the specified contract, or returns null if no match is found. |
![]() | TryGetExport(Type^, Object^) | Returns the export that matches the specified type, or returns null if no match is found. |
![]() | TryGetExport(Type^, String^, Object^) | Returns the export that matches the specified contract name and type, or returns null if no match is found. |
![]() | TryGetExport<TExport>(TExport) | Returns the export that matches the specified generic type parameter, or returns null if no match is found. |
![]() | 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. |
| 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.

