Share via


IndexesOperationsExtensions.ListNames 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.Collections.Generic.IList<string> ListNames (this Microsoft.Azure.Search.IIndexesOperations operations, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default);
static member ListNames : Microsoft.Azure.Search.IIndexesOperations * Microsoft.Azure.Search.Models.SearchRequestOptions -> System.Collections.Generic.IList<string>
<Extension()>
Public Function ListNames (operations As IIndexesOperations, Optional searchRequestOptions As SearchRequestOptions = Nothing) As IList(Of String)

Parameters

operations
IIndexesOperations

The operations group for this extension method.

searchRequestOptions
SearchRequestOptions

Additional parameters for the operation.

Returns

The list of all index names for the search service.

Applies to