ExportProvider.GetExportsCore(ImportDefinition, AtomicComposition) 方法

定義

取得符合指定定義所定義限制的所有匯出。

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

參數

definition
ImportDefinition

一個物件,該物件定義要傳回的 Export 物件的條件。

atomicComposition
AtomicComposition

用於撰寫的異動容器。

傳回

集合,包含符合指定之條件的所有匯出。

備註

此方法的覆寫不應將基數相關不符視為錯誤,而且不應該在這些情況下擲回例外狀況。 例如,如果 是 CardinalityExactlyOne 且有零 Export 個物件符合指定 ImportDefinition之的條件,則應該傳回空 IEnumerable<T> 集合。

適用於