ComWrappers.ComInterfaceDispatch.GetInstance<T> Metoda

Definice

Když zadáte objekt IntPtr z vygenerované tabulky Vtable, převede ho na cílový typ.

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

Požadovaný typ

Parametry

dispatchPtr
ComWrappers.ComInterfaceDispatch

Ukazatel na položku funkce Vtable.

Návraty

T

Instance typu přidruženého k volání odeslané funkce.

Platí pro