AggregateExportProvider.GetExportsCore(ImportDefinition, AtomicComposition) AggregateExportProvider.GetExportsCore(ImportDefinition, AtomicComposition) AggregateExportProvider.GetExportsCore(ImportDefinition, AtomicComposition) Method

定義

取得符合指定之匯入條件的所有匯出。Gets all the exports that match the conditions of the specified import.

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>

參數

definition
ImportDefinition ImportDefinition ImportDefinition

要傳回之 Export 物件的條件。The conditions of the Export objects to be returned.

atomicComposition
AtomicComposition AtomicComposition AtomicComposition

用於撰寫的異動容器。The transactional container for the composition.

傳回

集合,包含符合指定之條件的所有匯出。A collection that contains all the exports that match the specified condition.

備註

實作者不應將與基數相關的不相符視為錯誤, 而且在這些情況下不應該擲回例外狀況。Implementers should not treat cardinality-related mismatches as errors and are not expected to throw exceptions in those cases.

例如, 如果匯入只要求一個匯出, 而提供者沒有相符的匯出或多個, 則此方法應該會傳回空IEnumerable<T>Export集合。For example, if the import requests exactly one export and the provider has either no matching exports or more than one, the method should return an empty IEnumerable<T> collection of Export.

適用於