IIndexedTextSearchService.GetPotentiallyMatchingFilesAsync Method

Definition

Gets an asynchronous enumerable list of files that would possibly contain a match for the search term given the specified search options

public System.Collections.Generic.IAsyncEnumerable<Microsoft.VisualStudio.Text.Operations.FileCandidate> GetPotentiallyMatchingFilesAsync (string searchTerm, Microsoft.VisualStudio.Text.Operations.SearchFileOptions options, System.Threading.CancellationToken cancellationToken);
abstract member GetPotentiallyMatchingFilesAsync : string * Microsoft.VisualStudio.Text.Operations.SearchFileOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.VisualStudio.Text.Operations.FileCandidate>
Public Function GetPotentiallyMatchingFilesAsync (searchTerm As String, options As SearchFileOptions, cancellationToken As CancellationToken) As IAsyncEnumerable(Of FileCandidate)

Parameters

searchTerm
String

>The term that needs to be searched

options
SearchFileOptions

The SearchFileOptions that should be used while searching for the search term to narrow down the possible matches

cancellationToken
CancellationToken

Cancellation token to cancel the request

Returns

Applies to