다음을 통해 공유


CSharpSyntaxTree.GetRoot(CancellationToken) Method

Definition

Gets the root node of the syntax tree.

public abstract Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode GetRoot (System.Threading.CancellationToken cancellationToken = default);
override this.GetRoot : System.Threading.CancellationToken -> Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode
Public MustOverride Function GetRoot (Optional cancellationToken As CancellationToken = Nothing) As CSharpSyntaxNode

Parameters

cancellationToken
CancellationToken

Returns

Applies to