共用方式為


IndexesOperationsExtensions.ListNamesAsync Method

Definition

Lists the names of all indexes available for a search service. Use this instead of List() when you only need index names. It will save bandwidth and resource utilization, especially if your Search Service has many indexes. 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))

Parameters

operations
IIndexesOperations

The operations group for this extension method.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

The list of all index names for the search service.

Applies to