共用方式為


ModelExtensions.GetSymbolInfo 方法

定義

取得語法節點的符號資訊。

public static Microsoft.CodeAnalysis.SymbolInfo GetSymbolInfo (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.SyntaxNode node, System.Threading.CancellationToken cancellationToken = default);
static member GetSymbolInfo : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.SyntaxNode * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.SymbolInfo
<Extension()>
Public Function GetSymbolInfo (semanticModel As SemanticModel, node As SyntaxNode, Optional cancellationToken As CancellationToken = Nothing) As SymbolInfo

參數

semanticModel
SemanticModel
node
SyntaxNode

要取得語意資訊的語法節點。

cancellationToken
CancellationToken

可用來取消取得語意資訊的處理常式的解除標記。

傳回

適用於