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<TExport> Method (String^, TExport)
.NET Framework (current version)
Returns the export that matches the specified generic type parameter and contract name, or returns null if no match is found.
Assembly: System.Composition.Runtime (in System.Composition.Runtime.dll)
public: generic<typename TExport> bool TryGetExport( String^ contractName, [OutAttribute] TExport% export )
Parameters
- contractName
-
Type:
System::String^
The name to match.
- export
-
Type:
TExport
When this method returns, contains the matched export or null..
Type Parameters
- TExport
The type to match.
Show: