共用方式為


NotificationHubNamespaceCollection.CreateOrUpdate Method

Definition

Creates / Updates a Notification Hub namespace. This operation is idempotent.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}
  • Operation Id: Namespaces_CreateOrUpdate
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubNamespaceResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string namespaceName, Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, namespaceName As String, data As NotificationHubNamespaceData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of NotificationHubNamespaceResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

namespaceName
String

Namespace name.

data
NotificationHubNamespaceData

Request content.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

namespaceName is an empty string, and was expected to be non-empty.

namespaceName or data is null.

Applies to