AggregateExportProvider.GetExportsCore 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得所有符合指定進口條件的出口。
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
這是創作的交易容器。
傳回
一個包含所有符合指定條件的匯出資料集合。
備註
實作者不應將與基數相關的不匹配視為錯誤,也不應該在這些情況下拋出例外。
例如,若匯入要求恰好一個匯出,且提供者沒有匹配或多於一個匯出,該方法應回傳一個空 IEnumerable<T> 集合 Export。