RuntimeReflectionExtensions.GetRuntimeInterfaceMap(TypeInfo, Type) メソッド

定義

指定した型と指定したインターフェイスのインターフェイス マッピングを返します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::InterfaceMapping GetRuntimeInterfaceMap(System::Reflection::TypeInfo ^ typeInfo, Type ^ interfaceType);
public static System.Reflection.InterfaceMapping GetRuntimeInterfaceMap(this System.Reflection.TypeInfo typeInfo, Type interfaceType);
static member GetRuntimeInterfaceMap : System.Reflection.TypeInfo * Type -> System.Reflection.InterfaceMapping
<Extension()>
Public Function GetRuntimeInterfaceMap (typeInfo As TypeInfo, interfaceType As Type) As InterfaceMapping

パラメーター

typeInfo
TypeInfo

マッピングを取得する対象の型。

interfaceType
Type

マッピングを取得するインターフェイス。

返品

指定したインターフェイスと型のインターフェイス マッピングを表すオブジェクト。

例外

typeInfonullです。

-または-

interfaceTypenullです。

interfaceType は、 typeInfoによって実装されていません。

-または-

interfaceType はインターフェイスを参照しません。

-または-

typeInfo または interfaceType がオープン ジェネリック型です。

-または-

interfaceType はジェネリック インターフェイスであり、 typeInfo は配列型です。

typeInfo はジェネリック型パラメーターを表します。

typeInfoは、CreateType() メソッドがまだ呼び出されていないTypeBuilder インスタンスです。

-または-

呼び出されたメソッドは、基底クラスではサポートされていません。 派生クラスは実装を提供する必要があります。

適用対象

こちらもご覧ください