Partager via


IDebugCustomAttributeQuery2

Détermine l’existence d’un attribut personnalisé pour ce champ et, s’il existe, retourne les informations d’attribut.

Syntaxe

IDebugCustomAttributeQuery2 : IDebugCustomAttributeQuery

Remarques pour les implémenteurs

Un fournisseur de symboles implémente cette interface sur le même objet que celui qui implémente IDebugField afin de prendre en charge les attributs personnalisés.

Remarques pour les appelants

Utilisez QueryInterface pour obtenir cette interface à partir de l’interface IDebugField .

Méthodes dans l'ordre Vtable

Le tableau suivant présente les méthodes de l’interface IDebugCustomAttributeQuery .

Méthode Description
IsCustomAttributeDefined Détermine si un attribut personnalisé existe par nom.
GetCustomAttributeByName Obtient les informations d’attribut pour l’attribut personnalisé donné.

Outre les méthodes IDebugCustomAttributeQuery , IDebugCustomAttributeQuery2 implémente la méthode suivante :

Méthode Description
EnumCustomAttributes Obtient un énumérateur pour tous les attributs personnalisés attachés à ce champ.

Notes

La méthode IEnumDebugCustomAttributes peut retourner un énumérateur pour tous les attributs personnalisés définis pour ce champ.

Spécifications

En-tête : sh.h

Espace de noms : Microsoft.VisualStudio.Debugger.Interop

Assembly : Microsoft.VisualStudio.Debugger.Interop.dll

Voir aussi