Share via


SyntaxNodeOrToken.HasAnnotation(SyntaxAnnotation) Method

Definition

Determines if this node or token has the specific annotation.

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

Parameters

annotation
SyntaxAnnotation

Returns

Applies to