TypeCatalog.GetExports(ImportDefinition) 方法

定义

获取与导入定义所指定的条件相匹配的导出的集合。Gets a collection of exports that match the conditions specified by the import 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);
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

指定相匹配的导出的条件。Conditions that specify which exports to match.

返回

definition 所指定的条件相匹配的导出的集合。A collection of exports that match the conditions specified by definition.

适用于