AggregateExportProvider.GetExportsCore 메서드

정의

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

protected:
 override System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::Export ^> ^ GetExportsCore(System::ComponentModel::Composition::Primitives::ImportDefinition ^ definition, System::ComponentModel::Composition::Hosting::AtomicComposition ^ atomicComposition);
protected override System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export> GetExportsCore(System.ComponentModel.Composition.Primitives.ImportDefinition definition, System.ComponentModel.Composition.Hosting.AtomicComposition atomicComposition);
override this.GetExportsCore : System.ComponentModel.Composition.Primitives.ImportDefinition * System.ComponentModel.Composition.Hosting.AtomicComposition -> seq<System.ComponentModel.Composition.Primitives.Export>
Protected Overrides Function GetExportsCore (definition As ImportDefinition, atomicComposition As AtomicComposition) As IEnumerable(Of Export)

매개 변수

definition
ImportDefinition

반환할 개체의 Export 조건입니다.

atomicComposition
AtomicComposition

컴퍼지션에 대한 트랜잭션 컨테이너입니다.

반품

지정된 조건과 일치하는 모든 내보내기를 포함하는 컬렉션입니다.

설명

구현자는 카디널리티 관련 불일치를 오류로 처리해서는 안 되며 이러한 경우 예외를 throw하지 않을 것으로 예상됩니다.

예를 들어 가져오기에서 정확히 하나의 내보내기를 요청하고 공급자에 일치하는 내보내기 또는 둘 이상의 내보내기가 없는 경우 메서드는 빈 IEnumerable<T> 컬렉션을 Export반환해야 합니다.

적용 대상