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

要返回的 Export 对象的条件。

atomicComposition
AtomicComposition

组合的事务性容器。

返回

一个包含与指定的条件匹配的所有导出的集合。

注解

实施者不应将与基数相关的不匹配视为错误,并且不应在这些情况下引发异常。

例如,如果导入只请求一个导出,并且提供程序没有匹配的导出或多个导出,则 方法应返回 空 IEnumerable<T> 集合 Export

适用于