IDynamicInterfaceCastable.GetInterfaceImplementation メソッド

定義

指定のインターフェイス型がクラスのメタデータで見つからない場合に、インターフェイスのディスパッチ中に呼び出されます。

public:
 RuntimeTypeHandle GetInterfaceImplementation(RuntimeTypeHandle interfaceType);
public RuntimeTypeHandle GetInterfaceImplementation (RuntimeTypeHandle interfaceType);
abstract member GetInterfaceImplementation : RuntimeTypeHandle -> RuntimeTypeHandle
Public Function GetInterfaceImplementation (interfaceType As RuntimeTypeHandle) As RuntimeTypeHandle

パラメーター

interfaceType
RuntimeTypeHandle

インターフェイスの型。

戻り値

RuntimeTypeHandle

現在のオブジェクトで interfaceType のディスパッチに使用する型。

例外

戻り値の型はインターフェイス型ではありません。あるいは、DynamicInterfaceCastableImplementationAttribute のマークが付けられませんでした。

注釈

この関数が呼び出されると、このオブジェクトの特定のインターフェイスへのキャストは、既に手順を castclass/isinst 通じて検証されている必要があります。 返される型はインターフェイス型 DynamicInterfaceCastableImplementationAttributeで、. それ以外の場合は、 InvalidOperationException スローされます。

適用対象