Nyelv

ComWrappers.ComInterfaceDispatch.GetInstance<T> Metódus

Definíció

A létrehozott virtuális táblából származó virtuális IntPtr táblát a céltípussá konvertálja.

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ípusparaméterek

T

Kívánt típus.

Paraméterek

dispatchPtr
ComWrappers.ComInterfaceDispatch

Mutató a Vtable függvény bejegyzésére.

Válaszok

T

A kézbesített függvényhíváshoz társított típuspéldány.

A következőre érvényes: