CompositionContainer.GetExportsCore 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳所有符合指定 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);
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 或停用交易性組合。
傳回
集合了所有ExportCompositionContainer符合條件definition的物件。
備註
實作不應將基數相關的不匹配視為錯誤,也不應對基數相關的不匹配拋出例外。 例如,如果匯入只要求一個匯出,而提供者要麼沒有匹配的匯出,要麼多於一個,該 GetExportsCore 方法應該回傳一個空 IEnumerable<T> 的物件集合 Export 。