LifetimeContext.TryGetExport(CompositionContract, Object) LifetimeContext.TryGetExport(CompositionContract, Object) LifetimeContext.TryGetExport(CompositionContract, Object) LifetimeContext.TryGetExport(CompositionContract, Object) Method

정의

컴퍼지션 컨텍스트에서 계약 인스턴스를 검색합니다.Retrieves a contract instance from the composition context.

public:
 override bool TryGetExport(System::Composition::Hosting::Core::CompositionContract ^ contract, [Runtime::InteropServices::Out] System::Object ^ % export);
public override bool TryGetExport (System.Composition.Hosting.Core.CompositionContract contract, out object export);
override this.TryGetExport : System.Composition.Hosting.Core.CompositionContract * obj -> bool
Public Overrides Function TryGetExport (contract As CompositionContract, ByRef export As Object) As Boolean

매개 변수

export
Object Object Object Object

가능한 경우 이 메서드가 반환된 후 계약 인스턴스를 포함합니다. 그렇지 않으면 null입니다.After this method returns, contains the contract instance if available; otherwise, null.

반환

인스턴스가 검색되었으면 true이고, 그렇지 않으면 false입니다.true if the instance was retrieved; otherwise, false.

예외

contract의 내보내기가 없습니다.No export was found for contract.

적용 대상