ComWrappers.ComInterfaceDispatch.GetInstance<T> Metoda

Definicja

Biorąc pod uwagę wygenerowaną tabelę IntPtr wirtualną, konwertuje ją na typ docelowy.

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)

Parametry typu

T

Żądany typ.

Parametry

dispatchPtr
ComWrappers.ComInterfaceDispatch

Wskaźnik do wpisu funkcji Vtable.

Zwraca

T

Wystąpienie typu skojarzonego z wysłanym wywołaniem funkcji.

Dotyczy