ComposablePartCatalog.GetExports(ImportDefinition) Метод

Определение

Возвращает список определений экспорта, которые соответствуют ограничению, определенному указанным ImportDefinition объектом.

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

Параметры

definition
ImportDefinition

ExportDefinition Условия возвращаемых объектов.

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

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

Исключения

ComposablePartCatalog Объект был удален.

definition равно null.

Комментарии

Переопределения этого метода никогда не должны возвращать null. Если условия не ExportDefinition соответствуют заданным definition, возвращает пустой IEnumerable<T> объект.

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