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

IWebApps.DeleteByResourceGroupAsync 方法

定义

从 Azure 中删除资源,并按其名称和资源组对其进行标识。

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

参数

resourceGroupName
String

资源所属的组

name
String

资源的名称

deleteMetrics
Nullable<Boolean>

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

deleteEmptyServerFarm
Nullable<Boolean>

如果为 true,则也会删除空App 服务计划

cancellationToken
CancellationToken

cancellationToken 取消令牌

返回

适用于