共用方式為


IWebApps.DeleteByResourceGroup 方法

定義

從 Azure 刪除資源,並依其名稱和其資源群組加以識別。

public void DeleteByResourceGroup (string resourceGroupName, string name, bool? deleteMetrics = default, bool? deleteEmptyServerFarm = default);
abstract member DeleteByResourceGroup : string * string * Nullable<bool> * Nullable<bool> -> unit
Public Sub DeleteByResourceGroup (resourceGroupName As String, name As String, Optional deleteMetrics As Nullable(Of Boolean) = Nothing, Optional deleteEmptyServerFarm As Nullable(Of Boolean) = Nothing)

參數

resourceGroupName
String

資源所屬的群組

name
String

資源的名稱

deleteMetrics
Nullable<Boolean>

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

deleteEmptyServerFarm
Nullable<Boolean>

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

適用於