SearchIndexClient.DeleteSynonymMap 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 |
|---|---|
| DeleteSynonymMap(String, CancellationToken) |
Deletes a synonym map. |
| DeleteSynonymMap(SynonymMap, Boolean, CancellationToken) |
Deletes a synonym map. |
| DeleteSynonymMap(String, MatchConditions, RequestContext) |
[Protocol Method] Deletes a synonym map.
|
| DeleteSynonymMap(String, MatchConditions, CancellationToken) |
Deletes a synonym map. |
DeleteSynonymMap(String, CancellationToken)
- Source:
- SearchIndexClient.cs
- Source:
- SearchIndexClient.cs
Deletes a synonym map.
public virtual Azure.Response DeleteSynonymMap(string synonymMapName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteSynonymMap : string * System.Threading.CancellationToken -> Azure.Response
override this.DeleteSynonymMap : string * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteSynonymMap (synonymMapName As String, Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
- synonymMapName
- String
The name of a SynonymMap to delete.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be canceled.
Returns
The Response from the server.
Exceptions
Thrown when synonymMapName or Name is null.
Thrown when a failure is returned by the Search service.
Applies to
DeleteSynonymMap(SynonymMap, Boolean, CancellationToken)
- Source:
- SearchIndexClient.cs
- Source:
- SearchIndexClient.cs
Deletes a synonym map.
public virtual Azure.Response DeleteSynonymMap(Azure.Search.Documents.Indexes.Models.SynonymMap synonymMap, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteSynonymMap : Azure.Search.Documents.Indexes.Models.SynonymMap * bool * System.Threading.CancellationToken -> Azure.Response
override this.DeleteSynonymMap : Azure.Search.Documents.Indexes.Models.SynonymMap * bool * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteSynonymMap (synonymMap As SynonymMap, Optional onlyIfUnchanged As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
- synonymMap
- SynonymMap
The SynonymMap to delete.
- onlyIfUnchanged
- Boolean
True to throw a RequestFailedException if the ETag does not match the current service version; otherwise, the current service version will be overwritten.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be canceled.
Returns
The Response from the server.
Exceptions
Thrown when synonymMap or Name is null.
Thrown when a failure is returned by the Search service.
Applies to
DeleteSynonymMap(String, MatchConditions, RequestContext)
- Source:
- SearchIndexClient.cs
- Source:
- SearchIndexClient.cs
[Protocol Method] Deletes a synonym map.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response DeleteSynonymMap(string synonymMapName, Azure.MatchConditions matchConditions, Azure.RequestContext context);
abstract member DeleteSynonymMap : string * Azure.MatchConditions * Azure.RequestContext -> Azure.Response
override this.DeleteSynonymMap : string * Azure.MatchConditions * Azure.RequestContext -> Azure.Response
Public Overridable Function DeleteSynonymMap (synonymMapName As String, matchConditions As MatchConditions, context As RequestContext) As Response
Parameters
- synonymMapName
- String
The name of the synonym map.
- 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
synonymMapName is null.
synonymMapName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
DeleteSynonymMap(String, MatchConditions, CancellationToken)
- Source:
- SearchIndexClient.cs
- Source:
- SearchIndexClient.cs
Deletes a synonym map.
public virtual Azure.Response DeleteSynonymMap(string synonymMapName, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteSynonymMap : string * Azure.MatchConditions * System.Threading.CancellationToken -> Azure.Response
override this.DeleteSynonymMap : string * Azure.MatchConditions * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DeleteSynonymMap (synonymMapName As String, Optional matchConditions As MatchConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
- synonymMapName
- String
The name of the synonym map.
- 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
synonymMapName is null.
synonymMapName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.