Sdílet prostřednictvím


IIndexWorkspaceData.GetReferencedFilesAsync Method

Definition

Return cached File Reference info

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Workspace.Indexing.FileReferenceResult>> GetReferencedFilesAsync (string filePath, string target = default, string context = default, System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Workspace.Indexing.FileReferenceResult>> GetReferencedFilesAsync (string filePath, string? target = default, string? context = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetReferencedFilesAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.VisualStudio.Workspace.Indexing.FileReferenceResult>>
Public Function GetReferencedFilesAsync (filePath As String, Optional target As String = Nothing, Optional context As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of FileReferenceResult))

Parameters

filePath
String

File entity path

target
String

Target for the reference (or null)

context
String

Context for the reference (or null)

cancellationToken
CancellationToken

Cancellation token

Returns

Completion task with results

Applies to