SearchIndexClient.DeleteAliasAsync 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 |
|---|---|
| DeleteAliasAsync(String, CancellationToken) |
Deletes a search alias and its associated mapping to an index. This operation is permanent, with no recovery option. The mapped index is untouched by this operation. |
| DeleteAliasAsync(SearchAlias, Boolean, CancellationToken) |
Deletes a search alias and its associated mapping to an index. This operation is permanent, with no recovery option. The mapped index is untouched by this operation. |
| DeleteAliasAsync(String, MatchConditions, RequestContext) |
[Protocol Method] Deletes a search alias and its associated mapping to an index. This operation is permanent, with no recovery option. The mapped index is untouched by this operation.
|
| DeleteAliasAsync(String, MatchConditions, CancellationToken) |
Deletes a search alias and its associated mapping to an index. This operation is permanent, with no recovery option. The mapped index is untouched by this operation. |
DeleteAliasAsync(String, CancellationToken)
- Source:
- SearchIndexClient.Aliases.cs
Deletes a search alias and its associated mapping to an index. This operation is permanent, with no recovery option. The mapped index is untouched by this operation.
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteAliasAsync(string aliasName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAliasAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteAliasAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteAliasAsync (aliasName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- aliasName
- String
The name of the alias to delete.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be canceled.
Returns
Response from the service.
Applies to
DeleteAliasAsync(SearchAlias, Boolean, CancellationToken)
- Source:
- SearchIndexClient.cs
Deletes a search alias and its associated mapping to an index. This operation is permanent, with no recovery option. The mapped index is untouched by this operation.
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteAliasAsync(Azure.Search.Documents.Indexes.Models.SearchAlias alias, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAliasAsync : Azure.Search.Documents.Indexes.Models.SearchAlias * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteAliasAsync : Azure.Search.Documents.Indexes.Models.SearchAlias * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteAliasAsync (alias As SearchAlias, Optional onlyIfUnchanged As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- alias
- SearchAlias
The definition of the alias to delete.
- onlyIfUnchanged
- Boolean
True to throw a RequestFailedException if the ETag does not match the current alias version; otherwise, the current version will be overwritten.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be canceled.
Returns
Response from the service.
Applies to
DeleteAliasAsync(String, MatchConditions, RequestContext)
- Source:
- SearchIndexClient.cs
[Protocol Method] Deletes a search alias and its associated mapping to an index. This operation is permanent, with no recovery option. The mapped index is untouched by this operation.
- 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> DeleteAliasAsync(string aliasName, Azure.MatchConditions matchConditions, Azure.RequestContext context);
abstract member DeleteAliasAsync : string * Azure.MatchConditions * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteAliasAsync : string * Azure.MatchConditions * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteAliasAsync (aliasName As String, matchConditions As MatchConditions, context As RequestContext) As Task(Of Response)
Parameters
- aliasName
- String
The name of the alias.
- matchConditions
- MatchConditions
The content to send as the request conditions of the request.
- 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
aliasName is null.
aliasName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
DeleteAliasAsync(String, MatchConditions, CancellationToken)
- Source:
- SearchIndexClient.cs
Deletes a search alias and its associated mapping to an index. This operation is permanent, with no recovery option. The mapped index is untouched by this operation.
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteAliasAsync(string aliasName, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAliasAsync : string * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteAliasAsync : string * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteAliasAsync (aliasName As String, Optional matchConditions As MatchConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- aliasName
- String
The name of the alias.
- matchConditions
- MatchConditions
The content to send as the request conditions of the request.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
aliasName is null.
aliasName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.