共用方式為


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

傳回

適用於