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

返回

适用于