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::TryGetExport Method

.NET Framework (current version)
 

Returns a single export, or returns null if no match is found.

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

NameDescription
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.

Return to top
Show:
© 2017 Microsoft