SyntaxTree.WithRootAndOptions(SyntaxNode, ParseOptions) 方法

定义

返回一个新树,其根和选项按指定方式,并且从当前树复制其他属性。

public:
 abstract Microsoft::CodeAnalysis::SyntaxTree ^ WithRootAndOptions(Microsoft::CodeAnalysis::SyntaxNode ^ root, Microsoft::CodeAnalysis::ParseOptions ^ options);
public abstract Microsoft.CodeAnalysis.SyntaxTree WithRootAndOptions (Microsoft.CodeAnalysis.SyntaxNode root, Microsoft.CodeAnalysis.ParseOptions options);
abstract member WithRootAndOptions : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.ParseOptions -> Microsoft.CodeAnalysis.SyntaxTree
Public MustOverride Function WithRootAndOptions (root As SyntaxNode, options As ParseOptions) As SyntaxTree

参数

root
SyntaxNode
options
ParseOptions

返回

适用于