SemanticModel.GetEnclosingSymbolCore(Int32, CancellationToken) 方法

定义

在此 SemanticModel 的 SyntaxTree 中给定位置时,返回该位置在内部考虑的最内部符号。

protected abstract Microsoft.CodeAnalysis.ISymbol GetEnclosingSymbolCore (int position, System.Threading.CancellationToken cancellationToken = default);
protected abstract Microsoft.CodeAnalysis.ISymbol? GetEnclosingSymbolCore (int position, System.Threading.CancellationToken cancellationToken = default);
abstract member GetEnclosingSymbolCore : int * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
Protected MustOverride Function GetEnclosingSymbolCore (position As Integer, Optional cancellationToken As CancellationToken = Nothing) As ISymbol

参数

position
Int32
cancellationToken
CancellationToken

返回

适用于