Sdílet prostřednictvím


SearchIndexerClient.DeleteSkillsetAsync Method

Definition

Overloads

DeleteSkillsetAsync(String, CancellationToken)

Deletes a skillset.

DeleteSkillsetAsync(SearchIndexerSkillset, Boolean, CancellationToken)

Deletes a skillset.

DeleteSkillsetAsync(String, CancellationToken)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

Deletes a skillset.

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteSkillsetAsync (string skillsetName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteSkillsetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteSkillsetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteSkillsetAsync (skillsetName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

skillsetName
String

The name of the SearchIndexerSkillset to delete.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be canceled.

Returns

The Response from the server.

Exceptions

Thrown when skillsetName is null.

Thrown when a failure is returned by the Search service.

Applies to

DeleteSkillsetAsync(SearchIndexerSkillset, Boolean, CancellationToken)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

Deletes a skillset.

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteSkillsetAsync (Azure.Search.Documents.Indexes.Models.SearchIndexerSkillset skillset, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteSkillsetAsync : Azure.Search.Documents.Indexes.Models.SearchIndexerSkillset * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteSkillsetAsync : Azure.Search.Documents.Indexes.Models.SearchIndexerSkillset * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteSkillsetAsync (skillset As SearchIndexerSkillset, Optional onlyIfUnchanged As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

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 skillset is null.

Thrown when a failure is returned by the Search service.

Applies to