Sdílet prostřednictvím


IIndexedTextSearchService.GetPotentiallyMatchingFilesAsync Metoda

Definice

Získá asynchronní výčetný seznam souborů, které by pravděpodobně obsahovaly shodu pro hledaný termín vzhledem k zadaným možnostem hledání.

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)

Parametry

searchTerm
String

>Termín, který je potřeba prohledat

options
SearchFileOptions

Hodnota SearchFileOptions , která by se měla použít při hledání hledaného termínu, aby se zúžily možné shody.

cancellationToken
CancellationToken

Zrušení tokenu pro zrušení požadavku

Návraty

Platí pro