Share via


ComWrappers.ComInterfaceDispatch.GetInstance<T> Méthode

Définition

En fonction d’un IntPtr d’une Vtable générée, le convertit en type cible.

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)

Paramètres de type

T

Type souhaité.

Paramètres

dispatchPtr
ComWrappers.ComInterfaceDispatch

Pointeur vers l’entrée de la fonction Vtable.

Retours

T

Instance du type associé à l’appel de fonction distribué.

S’applique à