SemanticModel.GetEnclosingSymbolCore(Int32, CancellationToken) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定這個 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