共用方式為


SyntaxToken.HasAnnotation(SyntaxAnnotation) 方法

定義

如果這個標記具有指定的注釋,則為 True。

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

傳回

適用於