共用方式為


Document.WithText(SourceText) 方法

定義

建立此檔的新實例,更新為指定文字。

public:
 Microsoft::CodeAnalysis::Document ^ WithText(Microsoft::CodeAnalysis::Text::SourceText ^ text);
public Microsoft.CodeAnalysis.Document WithText (Microsoft.CodeAnalysis.Text.SourceText text);
member this.WithText : Microsoft.CodeAnalysis.Text.SourceText -> Microsoft.CodeAnalysis.Document
Public Function WithText (text As SourceText) As Document

參數

text
SourceText

傳回

適用於