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

Возвращаемое значение

Коллекция объектов, содержащих объекты ExportDefinition и связанные с ними объекты ComposablePartDefinition, которые соответствуют заданным ограничениям.

Исключения

Объект DirectoryCatalog ликвидирован.

definition имеет значение null.

Применяется к