AssemblyCatalog.GetExports(ImportDefinition) Método

Definição

Obtém uma coleção de exportações que correspondem às condições especificadas pela definição de importação.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))

Parâmetros

definition
ImportDefinition

Condições que especificam a quais exportações corresponder.Conditions that specify which exports to match.

Retornos

IEnumerable<Tuple<ComposablePartDefinition,ExportDefinition>>

Uma coleção de exportações que correspondem às condições especificadas por definition.A collection of exports that match the conditions specified by definition.

Exceções

definition é null.definition is null.

O ComposablePartCatalog foi descartado.The ComposablePartCatalog has been disposed.

Comentários

Observações para herdeirosNotes to inheritors

Os sobretremos dessa propriedade nunca devem retornar null se nãoOverriders of this property should never return null if no
ExportDefinition corresponde às condições definidas por definition ; em vez disso, retorna um vazio IEnumerable<T> .ExportDefinition matches the conditions defined by definition; instead, return an empty IEnumerable<T>.

Aplica-se a