語言

ComposablePartExportProvider.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

那 ImportDefinition 定義了要得到的條件 Export 。

atomicComposition
AtomicComposition

使用 null 或停用交易性組合。

傳回

這是該提供者中符合指定條件的所有匯出資料的集合。

備註

實作者不應將與基數相關的不匹配視為錯誤,也不應為基數相關的不匹配拋出例外。 例如,如果匯入請求的匯出恰好只有一次,而提供者沒有匹配的匯出或超過一個,該 GetExportsCore 方法應該會回傳一個空 IEnumerable<T> 的物件集合 Export 。

適用於