Share via


IIndexWorkspaceService.GetFileReferencesAsync Method

Definition

Return file references to a file contained in our workspace

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Workspace.Indexing.FileReferenceResult>> GetFileReferencesAsync (string filePath, bool refreshOption = false, System.Threading.CancellationToken cancellationToken = default, string target = default, string context = default, params int[] referenceTypes);
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Workspace.Indexing.FileReferenceResult>> GetFileReferencesAsync (string filePath, bool refreshOption = false, System.Threading.CancellationToken cancellationToken = default, string? target = default, string? context = default, params int[] referenceTypes);
abstract member GetFileReferencesAsync : string * bool * System.Threading.CancellationToken * string * string * int[] -> System.Threading.Tasks.Task<seq<Microsoft.VisualStudio.Workspace.Indexing.FileReferenceResult>>
Public Function GetFileReferencesAsync (filePath As String, Optional refreshOption As Boolean = false, Optional cancellationToken As CancellationToken = Nothing, Optional target As String = Nothing, Optional context As String = Nothing, ParamArray referenceTypes As Integer()) As Task(Of IEnumerable(Of FileReferenceResult))

Parameters

filePath
String

File entity path

refreshOption
Boolean

Refresh option

cancellationToken
CancellationToken

Cancellation token

target
String

Target for the reference (or null)

context
String

Context for the reference (or null)

referenceTypes
Int32[]

reference types

Returns

list of references

Applies to