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.

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

.NET Framework (current version)
 

Retrieves a contract instance from the composition context.

Namespace:   System.Composition.Hosting.Core
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 contract.

export
Type: System::Object^

After this method returns, contains the contract instance.

Return Value

Type: System::Boolean

true if the instance was retrieved; otherwise, false.

Return to top
Show:
© 2017 Microsoft