Share via


IIndexWorkspaceService2.FindFileReferencesAsync Method

Definition

Find files in our File References using pattern match

public:
 System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::Collections::Generic::IReadOnlyCollection<Microsoft::VisualStudio::Workspace::Indexing::FileReferenceResult ^> ^> ^> ^ FindFileReferencesAsync(System::String ^ referenceFilePathPattern, System::Threading::CancellationToken cancellationToken, System::String ^ target, System::String ^ context, ... cli::array <int> ^ referenceTypes);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.Indexing.FileReferenceResult>>> FindFileReferencesAsync (string referenceFilePathPattern, System.Threading.CancellationToken cancellationToken, string target, string context, params int[] referenceTypes);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string?,System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.Indexing.FileReferenceResult>>> FindFileReferencesAsync (string referenceFilePathPattern, System.Threading.CancellationToken cancellationToken, string? target, string? context, params int[] referenceTypes);
abstract member FindFileReferencesAsync : string * System.Threading.CancellationToken * string * string * int[] -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.Indexing.FileReferenceResult>>>
Public Function FindFileReferencesAsync (referenceFilePathPattern As String, cancellationToken As CancellationToken, target As String, context As String, ParamArray referenceTypes As Integer()) As Task(Of IReadOnlyDictionary(Of String, IReadOnlyCollection(Of FileReferenceResult)))

Parameters

referenceFilePathPattern
String

The pattern to use to match a file reference path

cancellationToken
CancellationToken

Cancellation token

target
String

Optional target filter

context
String

Optional Context filter

referenceTypes
Int32[]

Optional Reference types

Returns

Completion task with a Dictionary results

Applies to