Partager via


DevTestLabNotificationChannelCollection.CreateOrUpdateAsync Méthode

Définition

Créez ou remplacez un canal de notification existant.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}
  • IdNotificationChannels_CreateOrUpdate d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DevTestLabs.DevTestLabNotificationChannelResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.DevTestLabs.DevTestLabNotificationChannelData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DevTestLabs.DevTestLabNotificationChannelData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DevTestLabs.DevTestLabNotificationChannelResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DevTestLabs.DevTestLabNotificationChannelData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DevTestLabs.DevTestLabNotificationChannelResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, name As String, data As DevTestLabNotificationChannelData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DevTestLabNotificationChannelResource))

Paramètres

waitUntil
WaitUntil

Completed si la méthode doit attendre pour retourner jusqu’à ce que l’opération de longue durée soit terminée sur le service ; Started si elle doit être retournée après le démarrage de l’opération. Pour plus d’informations sur les opérations de longue durée, consultez Exemples d’opérations de Long-Running Azure.Core.

name
String

Nom du canal de notification.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

name est une chaîne vide et devait être non vide.

name ou data est null.

S’applique à