SyntaxNode.HasAnnotation(SyntaxAnnotation) 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.
Détermine si ce nœud a l’annotation spécifique.
public:
bool HasAnnotation(Microsoft::CodeAnalysis::SyntaxAnnotation ^ annotation);
public bool HasAnnotation(Microsoft.CodeAnalysis.SyntaxAnnotation annotation);
public bool HasAnnotation(Microsoft.CodeAnalysis.SyntaxAnnotation? annotation);
member this.HasAnnotation : Microsoft.CodeAnalysis.SyntaxAnnotation -> bool
Public Function HasAnnotation (annotation As SyntaxAnnotation) As Boolean
Paramètres
- annotation
- SyntaxAnnotation