ExportProvider.TryGetExports 메서드

정의

지정된 가져오기의 조건과 일치하는 내보내기를 모두 가져옵니다.

public:
 bool TryGetExports(System::ComponentModel::Composition::Primitives::ImportDefinition ^ definition, System::ComponentModel::Composition::Hosting::AtomicComposition ^ atomicComposition, [Runtime::InteropServices::Out] System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::Export ^> ^ % exports);
public bool TryGetExports (System.ComponentModel.Composition.Primitives.ImportDefinition definition, System.ComponentModel.Composition.Hosting.AtomicComposition atomicComposition, out System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export> exports);
public bool TryGetExports (System.ComponentModel.Composition.Primitives.ImportDefinition definition, System.ComponentModel.Composition.Hosting.AtomicComposition? atomicComposition, out System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export>? exports);
member this.TryGetExports : System.ComponentModel.Composition.Primitives.ImportDefinition * System.ComponentModel.Composition.Hosting.AtomicComposition * seq -> bool
Public Function TryGetExports (definition As ImportDefinition, atomicComposition As AtomicComposition, ByRef exports As IEnumerable(Of Export)) As Boolean

매개 변수

definition
ImportDefinition

가져올 Export 개체의 조건을 정의하는 개체입니다.

atomicComposition
AtomicComposition

컴퍼지션의 트랜잭션 컨테이너입니다.

exports
IEnumerable<Export>

이 메서드가 반환될 경우 Export에 의해 정의된 조건과 일치하는 ImportDefinition 개체(있는 경우)의 컬렉션을 포함하며, 그렇지 않은 경우 비어 있는 IEnumerable<T> 개체입니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다.

반환

CardinalityZeroOrOne 또는 ZeroOrMore이고, 지정한 ImportDefinition의 조건과 일치하는 Export 개체가 없는 경우 true입니다. CardinalityZeroOrOne 또는 ExactlyOne이고 ImportDefinition의 조건과 일치하는 Export가 정확히 하나인 경우 true이고 그렇지 않은 경우 false입니다.

예외

definition이(가) null인 경우

적용 대상