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

MaintenanceExtensions.DeleteConfigurationAssignmentBySubscriptionAsync 方法

定义

取消注册资源的配置。

  • 请求路径/订阅/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • 操作IdConfigurationAssignmentsForSubscriptions_Delete
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>> DeleteConfigurationAssignmentBySubscriptionAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string configurationAssignmentName, System.Threading.CancellationToken cancellationToken = default);
static member DeleteConfigurationAssignmentBySubscriptionAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>>
<Extension()>
Public Function DeleteConfigurationAssignmentBySubscriptionAsync (subscriptionResource As SubscriptionResource, configurationAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MaintenanceConfigurationAssignmentData))

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

configurationAssignmentName
String

唯一的配置分配名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

configurationAssignmentName 是一个空字符串,预期为非空。

configurationAssignmentName 为 null。

适用于