CompositionHost::TryGetExport Method (CompositionContract^, Object^)

.NET Framework (current version)
 

Retrieves the specified export from the composition context.

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

public:
virtual bool TryGetExport(
	CompositionContract^ contract,
	[OutAttribute] Object^% export
) override

Parameters

contract
Type: System.Composition.Hosting.Core::CompositionContract^

The export to retrieve.

export
Type: System::Object^

When this method returns, contains the export.

Return Value

Type: System::Boolean

true if the export was retrieved; otherwise, false.

Return to top
Show: