SyntaxTree.WithFilePath(String) 方法

定义

返回一个新树,该 FilePath 树是指定的节点,其他属性是从当前树复制的。

public:
 abstract Microsoft::CodeAnalysis::SyntaxTree ^ WithFilePath(System::String ^ path);
public abstract Microsoft.CodeAnalysis.SyntaxTree WithFilePath (string path);
abstract member WithFilePath : string -> Microsoft.CodeAnalysis.SyntaxTree
Public MustOverride Function WithFilePath (path As String) As SyntaxTree

参数

path
String

返回

适用于