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

返回

适用于