次の方法で共有


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

戻り値

適用対象