AdditionalText.GetText(CancellationToken) 方法

定义

返回一个 SourceText 包含此文件的内容,或者 null 如果读取该文件时出错。

public abstract Microsoft.CodeAnalysis.Text.SourceText GetText (System.Threading.CancellationToken cancellationToken = default);
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

返回

适用于