次の方法で共有


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

照合するインポート。

戻り値

一致する部分のコレクション。

例外

definitionnullです。

ComposablePartCatalog は破棄されています。

注釈

継承者へのメモ

このプロパティのオーバーライドは、 で定義されているdefinition条件に一致しないExportDefinition場合は返nullさないでください。代わりに、空IEnumerable<T>の を返します。

適用対象