ComWrappers.ComInterfaceDispatch.GetInstance<T> Metod

Definition

Givet en IntPtr från en genererad Vtable konverterar den till måltypen.

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)

Typparametrar

T

Önskad typ.

Parametrar

dispatchPtr
ComWrappers.ComInterfaceDispatch

Pekare till Vtable-funktionspost.

Returer

T

En instans av den typ som är associerad med det skickade funktionsanropet.

Gäller för