ComposablePartCatalog.GetExports(ImportDefinition) Metodo

Definizione

Ottiene un elenco di definizioni di esportazioni che corrispondono al vincolo definito dall'oggetto ImportDefinition specificato.Gets a list of export definitions that match the constraint defined by the specified ImportDefinition object.

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))

Parametri

definition
ImportDefinition

Condizioni degli oggetti ExportDefinition da restituire.The conditions of the ExportDefinition objects to be returned.

Restituisce

IEnumerable<Tuple<ComposablePartDefinition,ExportDefinition>>

Raccolta di Tuple<T1,T2> contenente oggetti ExportDefinition e relativi oggetti ComposablePartDefinition associati per oggetti che corrispondono al vincolo specificato da definition.A collection of Tuple<T1,T2> containing the ExportDefinition objects and their associated ComposablePartDefinition objects for objects that match the constraint specified by definition.

Eccezioni

L'oggetto ComposablePartCatalog è stato eliminato.The ComposablePartCatalog object has been disposed of.

definition è null.definition is null.

Commenti

Le sostituzioni di questo metodo non devono mai restituire null .Overrides of this method should never return null. Se non ExportDefinition corrisponde alle condizioni definite da definition , restituire un IEnumerable<T> oggetto vuoto.If no ExportDefinition matches the conditions defined by definition, return an empty IEnumerable<T> object.

Si applica a