Share via


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

SearchIndexerClient.DeleteIndexerAsync 方法

定义

重载

DeleteIndexerAsync(SearchIndexer, Boolean, CancellationToken)

删除索引器。

DeleteIndexerAsync(String, CancellationToken)

删除索引器。

DeleteIndexerAsync(SearchIndexer, Boolean, CancellationToken)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

删除索引器。

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

参数

indexer
SearchIndexer

SearchIndexer 删除的 。

onlyIfUnchanged
Boolean

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

cancellationToken
CancellationToken

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

返回

Response来自服务器的 。

例外

indexer 为 null 时引发。

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

适用于

DeleteIndexerAsync(String, CancellationToken)

Source:
SearchIndexerClient.cs
Source:
SearchIndexerClient.cs

删除索引器。

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

参数

indexerName
String

要删除的 SearchIndexer 的名称。

cancellationToken
CancellationToken

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

返回

Response来自服务器的 。

例外

indexerName 为 null 时引发。

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

适用于