ComWrappers.ComInterfaceDispatch.GetInstance<T> Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
Instance du type associé à l’appel de fonction distribué.