Partager via


MaintenanceExtensions.DeleteConfigurationAssignmentBySubscriptionAsync Méthode

Définition

Annuler l’inscription de la configuration pour la ressource.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • IdConfigurationAssignmentsForSubscriptions_Delete d’opération
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))

Paramètres

subscriptionResource
SubscriptionResource

Instance SubscriptionResource sur laquelle la méthode s’exécute.

configurationAssignmentName
String

Nom d’affectation de configuration unique.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

configurationAssignmentName est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

configurationAssignmentName a la valeur null.

S’applique à