LifetimeContext::TryGetExport Method (CompositionContract^, Object^)
.NET Framework (current version)
Retrieves a contract instance from the composition context.
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.
Show: