ExportProvider.GetExportsCore(ImportDefinition, AtomicComposition) メソッド

定義

指定した定義で定義されている制約に一致するすべてのエクスポートを取得します。

protected:
 abstract System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::Export ^> ^ GetExportsCore(System::ComponentModel::Composition::Primitives::ImportDefinition ^ definition, System::ComponentModel::Composition::Hosting::AtomicComposition ^ atomicComposition);
protected abstract System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.Export> GetExportsCore(System.ComponentModel.Composition.Primitives.ImportDefinition definition, System.ComponentModel.Composition.Hosting.AtomicComposition atomicComposition);
abstract member GetExportsCore : System.ComponentModel.Composition.Primitives.ImportDefinition * System.ComponentModel.Composition.Hosting.AtomicComposition -> seq<System.ComponentModel.Composition.Primitives.Export>
Protected MustOverride Function GetExportsCore (definition As ImportDefinition, atomicComposition As AtomicComposition) As IEnumerable(Of Export)

パラメーター

definition
ImportDefinition

返される Export オブジェクトの条件を定義するオブジェクト。

atomicComposition
AtomicComposition

コンポジションのトランザクション コンテナー。

返品

指定した条件に一致するすべてのエクスポートを含むコレクション。

注釈

このメソッドのオーバーライドでは、カーディナリティ関連の不一致をエラーとして扱うべきではありません。また、そのような場合は例外をスローしないでください。 たとえば、CardinalityExactlyOneで、指定したImportDefinitionの条件に一致するオブジェクトExportゼロがある場合は、空のIEnumerable<T> コレクションを返す必要があります。

適用対象