共用方式為


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

傳回

適用於