你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IndexesOperationsExtensions.ListNamesAsync 方法

定义

列出可用于搜索服务的所有索引的名称。 当只需要索引名称时,请使用它而不是 List () 。 这将节省带宽和资源利用率,尤其是在搜索服务有许多索引时。 https://docs.microsoft.com/rest/api/searchservice/List-Indexes

public static System.Threading.Tasks.Task<System.Collections.Generic.IList<string>> ListNamesAsync (this Microsoft.Azure.Search.IIndexesOperations operations, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member ListNamesAsync : Microsoft.Azure.Search.IIndexesOperations * Microsoft.Azure.Search.Models.SearchRequestOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<string>>
<Extension()>
Public Function ListNamesAsync (operations As IIndexesOperations, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of String))

参数

operations
IIndexesOperations

此扩展方法的操作组。

searchRequestOptions
SearchRequestOptions

操作的其他参数。

cancellationToken
CancellationToken

取消标记。

返回

搜索服务的所有索引名称的列表。

适用于