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::GetExport Method (Type^, String^)

.NET Framework (current version)
 

Returns the export that matches the specified name and type.

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

public:
Object^ GetExport(
	Type^ exportType,
	String^ contractName
)

Parameters

exportType
Type: System::Type^

The type to match.

contractName
Type: System::String^

The name to match.

Return Value

Type: System::Object^

The exported value.

Return to top
Show:
© 2017 Microsoft