SearchIndexerClient.GetIndexerAsync 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 |
|---|---|
| GetIndexerAsync(String, RequestContext) |
[Protocol Method] Retrieves an indexer definition.
|
| GetIndexerAsync(String, CancellationToken) |
Retrieves an indexer definition. |
GetIndexerAsync(String, RequestContext)
- Source:
- SearchIndexerClient.cs
- Source:
- SearchIndexerClient.cs
[Protocol Method] Retrieves an indexer definition.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> GetIndexerAsync(string indexerName, Azure.RequestContext context);
abstract member GetIndexerAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetIndexerAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetIndexerAsync (indexerName As String, context As RequestContext) As Task(Of Response)
Parameters
- indexerName
- String
The name of the indexer.
- 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
indexerName is null.
indexerName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetIndexerAsync(String, CancellationToken)
- Source:
- SearchIndexerClient.cs
- Source:
- SearchIndexerClient.cs
Retrieves an indexer definition.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexer>> GetIndexerAsync(string indexerName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIndexerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexer>>
override this.GetIndexerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Search.Documents.Indexes.Models.SearchIndexer>>
Public Overridable Function GetIndexerAsync (indexerName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SearchIndexer))
Parameters
- indexerName
- String
The name of the indexer.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
The Response<T> from the server containing the requested SearchIndexer.
Exceptions
indexerName is null.
indexerName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.