你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SearchIndexerClient.DeleteSkillsetAsync 方法

定义

重载

DeleteSkillsetAsync(String, CancellationToken)

删除技能组。

DeleteSkillsetAsync(SearchIndexerSkillset, Boolean, CancellationToken)

删除技能组。

DeleteSkillsetAsync(String, CancellationToken)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

删除技能组。

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)

参数

skillsetName
String

要删除的 SearchIndexerSkillset 的名称。

cancellationToken
CancellationToken

可选 CancellationToken ,用于传播应取消操作的通知。

返回

Response来自服务器的 。

例外

skillsetName 为 null 时引发。

当搜索服务返回失败时引发。

适用于

DeleteSkillsetAsync(SearchIndexerSkillset, Boolean, CancellationToken)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

删除技能组。

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)

参数

skillset
SearchIndexerSkillset

SearchIndexerSkillset 删除的 。

onlyIfUnchanged
Boolean

如果 ETag 与当前服务版本不匹配,则为 True,则引发 RequestFailedException ;否则,将覆盖当前服务版本。

cancellationToken
CancellationToken

可选 CancellationToken ,用于传播应取消操作的通知。

返回

Response来自服务器的 。

例外

skillset 为 null 时引发。

当搜索服务返回失败时引发。

适用于