Share via


SymbolFinder.FindSymbolAtPosition Method

Definition

Caution

Use FindSymbolAtPositionAsync instead.

[System.Obsolete("Use FindSymbolAtPositionAsync instead.")]
public static Microsoft.CodeAnalysis.ISymbol FindSymbolAtPosition (Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.Workspace workspace, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Use FindSymbolAtPositionAsync instead.")>]
static member FindSymbolAtPosition : Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.Workspace * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
Public Shared Function FindSymbolAtPosition (semanticModel As SemanticModel, position As Integer, workspace As Workspace, Optional cancellationToken As CancellationToken = Nothing) As ISymbol

Parameters

semanticModel
SemanticModel
position
Int32
workspace
Workspace
cancellationToken
CancellationToken

Returns

Attributes

Applies to