CompositionContext.GetExports メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| GetExports(Type) |
指定した型に一致するすべてのエクスポートのコレクションを取得します。 |
| GetExports(Type, String) |
指定したコントラクト名と型に一致するすべてのエクスポートを取得します。 |
| GetExports<TExport>() |
指定したジェネリック型パラメーターに一致するすべてのエクスポートを取得します。 |
| GetExports<TExport>(String) |
指定したジェネリック型パラメーターとコントラクト名に一致するすべてのエクスポートを取得します。 |
GetExports(Type)
指定した型に一致するすべてのエクスポートのコレクションを取得します。
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)
指定したコントラクト名と型に一致するすべてのエクスポートを取得します。
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>()
指定したジェネリック型パラメーターに一致するすべてのエクスポートを取得します。
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
一致する型。
返品
エクスポートされた値のコレクション。
例外
TExportのエクスポートが見つかりませんでした。
適用対象
GetExports<TExport>(String)
指定したジェネリック型パラメーターとコントラクト名に一致するすべてのエクスポートを取得します。
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
一致する名前。
返品
エクスポートされた値のコレクション。
例外
TExportとcontractNameのエクスポートは見つかりませんでした。