Document.GetSyntaxVersionAsync(CancellationToken) 方法

定义

获取语法树的版本。 这通常是较新的文本版本和项目版本。

public System.Threading.Tasks.Task<Microsoft.CodeAnalysis.VersionStamp> GetSyntaxVersionAsync (System.Threading.CancellationToken cancellationToken = default);
member this.GetSyntaxVersionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.VersionStamp>
Public Function GetSyntaxVersionAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of VersionStamp)

参数

cancellationToken
CancellationToken

返回

适用于