ProjectManager.SymbolReferences(ReferenceParams) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an array with all locations where the symbol at the given position - if any - is referenced.
public Microsoft.VisualStudio.LanguageServer.Protocol.Location[]? SymbolReferences (Microsoft.VisualStudio.LanguageServer.Protocol.ReferenceParams? param);
member this.SymbolReferences : Microsoft.VisualStudio.LanguageServer.Protocol.ReferenceParams -> Microsoft.VisualStudio.LanguageServer.Protocol.Location[]
Public Function SymbolReferences (param As ReferenceParams) As Location()
Parameters
- param
- ReferenceParams
Returns
- Location[]
Remarks
Returns null if some parameters are unspecified (null), or if the specified file is not listed as source file, or if the specified position is not a valid position within the currently processed file content, or if no symbol exists at the specified position at this time.
Fails silently without logging anything if an exception occurs upon evaluating the query (occasional failures are to be expected as the evaluation is a readonly query running in parallel to the ongoing processing).