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

IWebApps.DeleteByIdAsync 方法

定义

从 Azure 中删除资源,并按其资源 ID 标识该资源。

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

要删除的资源的资源 ID

deleteMetrics
Nullable<Boolean>

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

deleteEmptyServerFarm
Nullable<Boolean>

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

cancellationToken
CancellationToken

cancellationToken 取消令牌

返回

适用于