共用方式為


TextDocument.GetTextVersionAsync(CancellationToken) 方法

定義

取得檔的文字版本。

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

參數

cancellationToken
CancellationToken

傳回

適用於