共用方式為


IWebApps.DeleteByIdAsync 方法

定義

從 Azure 刪除資源,並依其資源識別碼加以識別。

public System.Threading.Tasks.Task DeleteByIdAsync (string id, bool? deleteMetrics = default, bool? deleteEmptyServerFarm = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteByIdAsync : string * Nullable<bool> * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DeleteByIdAsync (id As String, Optional deleteMetrics As Nullable(Of Boolean) = Nothing, Optional deleteEmptyServerFarm As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

參數

id
String

要刪除之資源的資源識別碼

deleteMetrics
Nullable<Boolean>

如果為 true,則也會刪除 Web 應用程式計量

deleteEmptyServerFarm
Nullable<Boolean>

如果為 true,也會刪除空白App Service計畫

cancellationToken
CancellationToken

cancellationToken 取消權杖

傳回

適用於