LifetimeContext Class

.NET Framework (current version)
 

Represents a node in the lifetime tree.

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

System::Object
  System.Composition::CompositionContext
    System.Composition.Hosting.Core::LifetimeContext

public ref class LifetimeContext sealed : CompositionContext, 
	IDisposable

NameDescription
System_CAPS_pubmethodAddBoundInstance(IDisposable^)

Binds the lifetime of a disposable part to this lifetime context.

System_CAPS_pubmethodSystem_CAPS_staticAllocateSharingId()

Generates an identifier that can be used to locate shared part instances.

System_CAPS_pubmethodDispose()

Releases the lifetime context and any part instances bound to it.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodFindContextWithin(String^)

Finds the broadest lifetime context that has the specified sharing boundaries.

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_pubmethodGetOrCreate(Int32, CompositionOperation^, CompositeActivator^)

Retrieves a shared part that has the specified ID, or creates it if it wasn't found.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the string representation of this LifetimeContext object. (Overrides Object::ToString().)

System_CAPS_pubmethodTryGetExport(CompositionContract^, Object^%)

Retrieves a contract instance 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: