ICorDebugType2, interface

Étend l’interface ICorDebugType pour récupérer l’identificateur de type d’un type de base ou d’un type complexe (défini par l’utilisateur).

Méthodes

Méthode Description
GetTypeID, méthode Obtient un COR_TYPEID pour ce type.

Notes

Cette interface est une extension logique de l’interface ICorDebugType.

Notes

Cette interface ne prend pas en charge l'appel à distance, que ce soit entre ordinateurs ou entre processus.

Exemple

Le fragment de code suivant illustre l’utilisation de la méthode ICorDebugType2::GetTypeID.

// (error checking omitted for brevity)  
// given an ICorDebugType *pType  
  
ICorDebugType2 *pType2 = NULL;  
pType->QueryInterface(IID_ICorDebugType2, &pType);  
  
COR_TYPEID id;  
pType2->GetTypeID(&id);  
  
// now we can use existing APIs to get information about this COR_TYPEID  

Spécifications

Plateformes : Consultez Configuration requise.

En-tête : CorDebug.idl, CorDebug.h

Bibliothèque : CorGuids.lib

Versions de .NET Framework : Disponibles depuis la version 4.6.2

Voir aussi