共用方式為


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 Service計畫會是空的,而且您想要刪除空的App Service計畫,請指定 true。 根據預設,不會刪除空App Service計畫。

customHeaders
Dictionary<String,List<String>>

將新增至要求的標頭。

cancellationToken
CancellationToken

取消語彙基元。

傳回

例外狀況

當作業傳回不正確狀態碼時擲回

當作業傳回不正確狀態碼時擲回

當必要參數為 Null 時擲回

備註

刪除 Web、行動或 API 應用程式的描述,或其中一個部署位置。

適用於