共用方式為


SyntaxReference.GetSyntaxAsync(CancellationToken) 方法

定義

擷取原始參考的語法節點。
此動作可能會導致剖析發生于復原語法節點。

public virtual System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode> GetSyntaxAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetSyntaxAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode>
override this.GetSyntaxAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode>
Public Overridable Function GetSyntaxAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of SyntaxNode)

參數

cancellationToken
CancellationToken

傳回

原始參考的語法節點。

適用於