共用方式為


CompositionContainer.GetExportsCore 方法

定義

傳回符合指定 ImportDefinition 物件之條件的所有匯出集合。

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

要使用的撰寫異動,null 則表示停用撰寫異動。

傳回

Export 物件中符合 definition 指定之條件的所有 CompositionContainer 物件的集合。

備註

實作不應將基數相關不符視為錯誤,而且不應該擲回基數相關不符的例外狀況。 例如,如果匯入要求剛好一個導出,而且提供者沒有相符的匯出或多個匯出,方法 GetExportsCore 應該會傳回空 IEnumerable<T> 的物件 Export 集合。

適用於