CompositionContext.GetExports メソッド

定義

オーバーロード

名前 説明
GetExports(Type)

指定した型に一致するすべてのエクスポートのコレクションを取得します。

GetExports(Type, String)

指定したコントラクト名と型に一致するすべてのエクスポートを取得します。

GetExports<TExport>()

指定したジェネリック型パラメーターに一致するすべてのエクスポートを取得します。

GetExports<TExport>(String)

指定したジェネリック型パラメーターとコントラクト名に一致するすべてのエクスポートを取得します。

GetExports(Type)

ソース:
CompositionContext.cs
ソース:
CompositionContext.cs
ソース:
CompositionContext.cs
ソース:
CompositionContext.cs

指定した型に一致するすべてのエクスポートのコレクションを取得します。

public:
 System::Collections::Generic::IEnumerable<System::Object ^> ^ GetExports(Type ^ exportType);
public System.Collections.Generic.IEnumerable<object> GetExports(Type exportType);
member this.GetExports : Type -> seq<obj>
Public Function GetExports (exportType As Type) As IEnumerable(Of Object)

パラメーター

exportType
Type

一致する型。

返品

エクスポートされた値のコレクション。

例外

exportTypeのエクスポートが見つかりませんでした。

適用対象

GetExports(Type, String)

ソース:
CompositionContext.cs
ソース:
CompositionContext.cs
ソース:
CompositionContext.cs
ソース:
CompositionContext.cs

指定したコントラクト名と型に一致するすべてのエクスポートを取得します。

public:
 System::Collections::Generic::IEnumerable<System::Object ^> ^ GetExports(Type ^ exportType, System::String ^ contractName);
public System.Collections.Generic.IEnumerable<object> GetExports(Type exportType, string contractName);
member this.GetExports : Type * string -> seq<obj>
Public Function GetExports (exportType As Type, contractName As String) As IEnumerable(Of Object)

パラメーター

exportType
Type

一致する型。

contractName
String

一致する名前。

返品

エクスポートされた値のコレクション。

例外

exportTypeのエクスポートが見つかりませんでした。

適用対象

GetExports<TExport>()

ソース:
CompositionContext.cs
ソース:
CompositionContext.cs
ソース:
CompositionContext.cs
ソース:
CompositionContext.cs

指定したジェネリック型パラメーターに一致するすべてのエクスポートを取得します。

public:
generic <typename TExport>
 System::Collections::Generic::IEnumerable<TExport> ^ GetExports();
public System.Collections.Generic.IEnumerable<TExport> GetExports<TExport>();
member this.GetExports : unit -> seq<'Export>
Public Function GetExports(Of TExport) () As IEnumerable(Of TExport)

型パラメーター

TExport

一致する型。

返品

IEnumerable<TExport>

エクスポートされた値のコレクション。

例外

TExportのエクスポートが見つかりませんでした。

適用対象

GetExports<TExport>(String)

ソース:
CompositionContext.cs
ソース:
CompositionContext.cs
ソース:
CompositionContext.cs
ソース:
CompositionContext.cs

指定したジェネリック型パラメーターとコントラクト名に一致するすべてのエクスポートを取得します。

public:
generic <typename TExport>
 System::Collections::Generic::IEnumerable<TExport> ^ GetExports(System::String ^ contractName);
public System.Collections.Generic.IEnumerable<TExport> GetExports<TExport>(string contractName);
member this.GetExports : string -> seq<'Export>
Public Function GetExports(Of TExport) (contractName As String) As IEnumerable(Of TExport)

型パラメーター

TExport

一致する型。

パラメーター

contractName
String

一致する名前。

返品

IEnumerable<TExport>

エクスポートされた値のコレクション。

例外

TExportcontractNameのエクスポートは見つかりませんでした。

適用対象