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

IWebAppsOperations.DeleteSlotWithHttpMessagesAsync 方法

定义

删除 Web、移动或 API 应用或其中一个部署槽位。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> DeleteSlotWithHttpMessagesAsync (string resourceGroupName, string name, string slot, bool? deleteMetrics = default, bool? deleteEmptyServerFarm = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteSlotWithHttpMessagesAsync : string * string * string * Nullable<bool> * Nullable<bool> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function DeleteSlotWithHttpMessagesAsync (resourceGroupName As String, name As String, slot As String, Optional deleteMetrics As Nullable(Of Boolean) = Nothing, Optional deleteEmptyServerFarm As Nullable(Of Boolean) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

参数

resourceGroupName
String

资源所属的资源组的名称。

name
String

要删除的应用的名称。

slot
String

要删除的部署槽的名称。 默认情况下,API 会删除生产槽。

deleteMetrics
Nullable<Boolean>

如果为 true,则也会删除 Web 应用指标。

deleteEmptyServerFarm
Nullable<Boolean>

如果应用删除后App 服务计划为空,并且你想要删除空App 服务计划,请指定 true。 默认情况下,不会删除空App 服务计划。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

例外

当操作返回无效状态代码时引发

当操作返回无效状态代码时引发

当所需参数为 null 时引发

注解

删除 Web、移动或 API 应用或其中一个部署槽位的说明。

适用于