ComWrappers.ComInterfaceDispatch.GetInstance<T> メソッド

定義

生成された Vtable から IntPtr を指定すると、ターゲットの型に変換されます。

public:
generic <typename T>
 where T : class static T GetInstance(System::Runtime::InteropServices::ComWrappers::ComInterfaceDispatch* dispatchPtr);
public static T GetInstance<T> (System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* dispatchPtr) where T : class;
static member GetInstance : nativeptr<System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch> -> 'T (requires 'T : null)

型パラメーター

T

目的の型。

パラメーター

dispatchPtr
ComWrappers.ComInterfaceDispatch

Vtable 関数エントリへのポインター。

戻り値

T

ディスパッチされた関数呼び出しに関連付けられている型のインスタンス。

適用対象