Freigeben über


NotificationHubNamespaceCollection.CreateOrUpdateAsync Methode

Definition

Erstellt/Updates einen Dienstnamespace. Nach der Erstellung ist das Ressourcenmanifest dieses Namespace unveränderlich. Dieser Vorgang ist idempotent.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}
  • Vorgangs-IdNamespaces_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string namespaceName, Azure.ResourceManager.NotificationHubs.Models.NotificationHubNamespaceCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NotificationHubs.Models.NotificationHubNamespaceCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NotificationHubs.Models.NotificationHubNamespaceCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, namespaceName As String, content As NotificationHubNamespaceCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NotificationHubNamespaceResource))

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der zeitintensive Vorgang für den Dienst abgeschlossen ist; Started , wenn sie nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführungszeit finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

namespaceName
String

Der Namespacename.

content
NotificationHubNamespaceCreateOrUpdateContent

Parameter, die zum Erstellen einer Namespaceressource bereitgestellt werden.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

namespaceName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

namespaceName oder content ist NULL.

Gilt für: