LifetimeContext Class
Represents a node in the lifetime tree.
Assembly: System.Composition.Hosting (in System.Composition.Hosting.dll)
System.Composition::CompositionContext
System.Composition.Hosting.Core::LifetimeContext
| Name | Description | |
|---|---|---|
![]() | AddBoundInstance(IDisposable^) | Binds the lifetime of a disposable part to this lifetime context. |
![]() ![]() | AllocateSharingId() | Generates an identifier that can be used to locate shared part instances. |
![]() | Dispose() | Releases the lifetime context and any part instances bound to it. |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | FindContextWithin(String^) | Finds the broadest lifetime context that has the specified sharing boundaries. |
![]() | 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.) |
![]() | GetOrCreate(Int32, CompositionOperation^, CompositeActivator^) | Retrieves a shared part that has the specified ID, or creates it if it wasn't found. |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | Returns the string representation of this LifetimeContext object. (Overrides Object::ToString().) |
![]() | TryGetExport(CompositionContract^, Object^%) | Retrieves a contract instance 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.

