共用方式為


SyntaxNodeOrToken.HasAnnotation(SyntaxAnnotation) 方法

定義

判斷這個節點或權杖是否有特定的注釋。

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

參數

annotation
SyntaxAnnotation

傳回

適用於