ComposablePartCatalog.GetExports(ImportDefinition) Yöntem

Tanım

Belirtilen ImportDefinition nesne tarafından tanımlanan kısıtlamayla eşleşen dışarı aktarma tanımlarının listesini alır.

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

Parametreler

definition
ImportDefinition

Döndürülecek nesnelerin koşulları ExportDefinition .

Döndürülenler

tarafından belirtilen kısıtlamayla Tuple<T1,T2> eşleşen nesneler için nesneleri ve ilişkili ExportDefinition nesnelerini içeren bir koleksiyonComposablePartDefinition.definition

Özel durumlar

definition, null'e eşittir.

Açıklamalar

Bu yöntemin geçersiz kılmaları hiçbir zaman döndürmemelidir null. tarafından ExportDefinitiontanımlanan koşullarla eşleşmezse definition boş IEnumerable<T> bir nesne döndürür.

Şunlara uygulanır