TextAndVersion.Create(SourceText, VersionStamp, String) 方法

定义

创建新的 TextAndVersion 实例。

public static Microsoft.CodeAnalysis.TextAndVersion Create (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.VersionStamp version, string filePath = default);
public static Microsoft.CodeAnalysis.TextAndVersion Create (Microsoft.CodeAnalysis.Text.SourceText text, Microsoft.CodeAnalysis.VersionStamp version, string? filePath = default);
static member Create : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.VersionStamp * string -> Microsoft.CodeAnalysis.TextAndVersion
Public Shared Function Create (text As SourceText, version As VersionStamp, Optional filePath As String = Nothing) As TextAndVersion

参数

text
SourceText

文本

version
VersionStamp

版本

filePath
String

已过时。

返回

适用于