IIndexedTextSearchService.GetPotentiallyMatchingFilesAsync 方法

定义

获取一个异步可枚举的文件列表,这些文件可能包含搜索词的匹配项(给定指定的搜索选项)

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)

参数

searchTerm
String

>需要搜索的术语

options
SearchFileOptions

搜索 SearchFileOptions 搜索词时应使用的 ,以缩小可能的匹配范围

cancellationToken
CancellationToken

取消请求的取消令牌

返回

适用于