AggregateCatalog.GetExports(ImportDefinition) 方法

定义

获取与指定的定义所表示的约束相匹配的导出定义。

public:
 override System::Collections::Generic::IEnumerable<Tuple<System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^, System::ComponentModel::Composition::Primitives::ExportDefinition ^> ^> ^ GetExports(System::ComponentModel::Composition::Primitives::ImportDefinition ^ definition);
public override System.Collections.Generic.IEnumerable<Tuple<System.ComponentModel.Composition.Primitives.ComposablePartDefinition,System.ComponentModel.Composition.Primitives.ExportDefinition>> GetExports (System.ComponentModel.Composition.Primitives.ImportDefinition definition);
override this.GetExports : System.ComponentModel.Composition.Primitives.ImportDefinition -> seq<System.ComponentModel.Composition.Primitives.ComposablePartDefinition * System.ComponentModel.Composition.Primitives.ExportDefinition>
Public Overrides Function GetExports (definition As ImportDefinition) As IEnumerable(Of Tuple(Of ComposablePartDefinition, ExportDefinition))

参数

definition
ImportDefinition

要返回的 ExportDefinition 对象的条件。

返回

Tuple<T1,T2> 的集合,其中包含与 definition 指定的约束相匹配的对象的 ExportDefinition 对象及其关联的 ComposablePartDefinition 对象。

例外

definitionnull

适用于