SearchIndexClient.GetIndexes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetIndexes(CancellationToken) |
Gets a list of all indexes. |
| GetIndexes(Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, RequestContext) |
[Protocol Method] Lists all indexes available for a search service.
|
| GetIndexes(Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, CancellationToken) |
Lists all indexes available for a search service. |
GetIndexes(CancellationToken)
- Source:
- SearchIndexClient.cs
- Source:
- SearchIndexClient.cs
Gets a list of all indexes.
public virtual Azure.Pageable<Azure.Search.Documents.Indexes.Models.SearchIndex> GetIndexes(System.Threading.CancellationToken cancellationToken = default);
public virtual Azure.Pageable<Azure.Search.Documents.Indexes.Models.SearchIndex> GetIndexes(System.Threading.CancellationToken cancellationToken);
abstract member GetIndexes : System.Threading.CancellationToken -> Azure.Pageable<Azure.Search.Documents.Indexes.Models.SearchIndex>
override this.GetIndexes : System.Threading.CancellationToken -> Azure.Pageable<Azure.Search.Documents.Indexes.Models.SearchIndex>
Public Overridable Function GetIndexes (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SearchIndex)
Public Overridable Function GetIndexes (cancellationToken As CancellationToken) As Pageable(Of SearchIndex)
Parameters
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be canceled.
Returns
The Pageable<T> from the server containing a list of SearchIndex.
Exceptions
Thrown when a failure is returned by the Search service.
Applies to
GetIndexes(Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, RequestContext)
- Source:
- SearchIndexClient.cs
[Protocol Method] Lists all indexes available for a search service.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Pageable<BinaryData> GetIndexes(int? top, int? skip, bool? count, Azure.RequestContext context);
abstract member GetIndexes : Nullable<int> * Nullable<int> * Nullable<bool> * Azure.RequestContext -> Azure.Pageable<BinaryData>
override this.GetIndexes : Nullable<int> * Nullable<int> * Nullable<bool> * Azure.RequestContext -> Azure.Pageable<BinaryData>
Public Overridable Function GetIndexes (top As Nullable(Of Integer), skip As Nullable(Of Integer), count As Nullable(Of Boolean), context As RequestContext) As Pageable(Of BinaryData)
Parameters
A value that specifies whether to fetch the total count of items. Default is false.
- context
- RequestContext
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
Service returned a non-success status code.
Applies to
GetIndexes(Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, CancellationToken)
- Source:
- SearchIndexClient.cs
Lists all indexes available for a search service.
public virtual Azure.Pageable<Azure.Search.Documents.Indexes.Models.SearchIndex> GetIndexes(int? top = default, int? skip = default, bool? count = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIndexes : Nullable<int> * Nullable<int> * Nullable<bool> * System.Threading.CancellationToken -> Azure.Pageable<Azure.Search.Documents.Indexes.Models.SearchIndex>
override this.GetIndexes : Nullable<int> * Nullable<int> * Nullable<bool> * System.Threading.CancellationToken -> Azure.Pageable<Azure.Search.Documents.Indexes.Models.SearchIndex>
Public Overridable Function GetIndexes (Optional top As Nullable(Of Integer) = Nothing, Optional skip As Nullable(Of Integer) = Nothing, Optional count As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SearchIndex)
Parameters
A value that specifies whether to fetch the total count of items. Default is false.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
Service returned a non-success status code.