Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CompositionContext Class

.NET Framework (current version)
 

Provides methods to retrieve exports from the composition.

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


public ref class CompositionContext abstract 

NameDescription
System_CAPS_protmethodCompositionContext()

Initializes a new instance of the CompositionContext class.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetExport(CompositionContract^)

Returns the export that matches the specified contract.

System_CAPS_pubmethodGetExport(Type^)

Returns the export that matches the specified type.

System_CAPS_pubmethodGetExport(Type^, String^)

Returns the export that matches the specified name and type.

System_CAPS_pubmethodGetExport<TExport>()

Returns the export that matches the specified generic type parameter.

System_CAPS_pubmethodGetExport<TExport>(String^)

Returns the export that matches the specified generic type parameter and contract name.

System_CAPS_pubmethodGetExports(Type^)

Returns a collection of all exports that match the specified type.

System_CAPS_pubmethodGetExports(Type^, String^)

Returns all exports that match the specified contract name and type.

System_CAPS_pubmethodGetExports<TExport>()

Returns all exports that match the specified generic type parameter.

System_CAPS_pubmethodGetExports<TExport>(String^)

Returns all exports that match the specified generic type parameter and contract name.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetExport(CompositionContract^, Object^)

Returns the export that matches the specified contract, or returns null if no match is found.

System_CAPS_pubmethodTryGetExport(Type^, Object^)

Returns the export that matches the specified type, or returns null if no match is found.

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.

System_CAPS_pubmethodTryGetExport<TExport>(TExport)

Returns the export that matches the specified generic type parameter, or returns null if no match is found.

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.

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:
© 2017 Microsoft