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);
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

適用於