共用方式為


SyntaxTree.GetText(CancellationToken) 方法

定義

取得原始檔案的文字。

public abstract Microsoft.CodeAnalysis.Text.SourceText GetText (System.Threading.CancellationToken cancellationToken = default);
abstract member GetText : System.Threading.CancellationToken -> Microsoft.CodeAnalysis.Text.SourceText
Public MustOverride Function GetText (Optional cancellationToken As CancellationToken = Nothing) As SourceText

參數

cancellationToken
CancellationToken

傳回

適用於