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

IndexesOperationsExtensions.DeleteAsync 方法

定义

删除搜索索引及其包含的所有文档。 https://docs.microsoft.com/rest/api/searchservice/Delete-Index

public static System.Threading.Tasks.Task DeleteAsync (this Microsoft.Azure.Search.IIndexesOperations operations, string indexName, Microsoft.Azure.Search.Models.SearchRequestOptions searchRequestOptions = default, Microsoft.Azure.Search.Models.AccessCondition accessCondition = default, System.Threading.CancellationToken cancellationToken = default);
static member DeleteAsync : Microsoft.Azure.Search.IIndexesOperations * string * Microsoft.Azure.Search.Models.SearchRequestOptions * Microsoft.Azure.Search.Models.AccessCondition * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function DeleteAsync (operations As IIndexesOperations, indexName As String, Optional searchRequestOptions As SearchRequestOptions = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

参数

operations
IIndexesOperations

此扩展方法的操作组。

indexName
String

要删除的索引的名称。

searchRequestOptions
SearchRequestOptions

操作的其他参数

accessCondition
AccessCondition

操作的其他参数

cancellationToken
CancellationToken

取消标记。

返回

适用于