CompositionContext::TryGetExport<TExport> Method (TExport)

.NET Framework (current version)
 

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

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

public:
generic<typename TExport>
bool TryGetExport(
	[OutAttribute] TExport% export
)

Parameters

export
Type: TExport

When this method returns, contains the matched export or null.

Return Value

Type: System::Boolean

true if an export was found; otherwise, false.

Type Parameters

TExport

The type to match.

Return to top
Show: