Freigeben über


NotificationHubsExtensions.CheckNotificationHubNamespaceAvailabilityAsync Methode

Definition

Überprüft die Verfügbarkeit des angegebenen Dienstnamespaces in allen Azure-Abonnements. Dies ist nützlich, da der Domänenname basierend auf dem Dienstnamespacenamen erstellt wird.

  • Anforderungspfad/abonnements/{subscriptionId}/providers/Microsoft.NotificationHubs/checkNamespaceAvailability
  • Vorgangs-IdNamespaces_CheckAvailability
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NotificationHubs.Models.NotificationHubAvailabilityResult>> CheckNotificationHubNamespaceAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.NotificationHubs.Models.NotificationHubAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckNotificationHubNamespaceAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.NotificationHubs.Models.NotificationHubAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NotificationHubs.Models.NotificationHubAvailabilityResult>>
<Extension()>
Public Function CheckNotificationHubNamespaceAvailabilityAsync (subscriptionResource As SubscriptionResource, content As NotificationHubAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NotificationHubAvailabilityResult))

Parameter

subscriptionResource
SubscriptionResource

Der SubscriptionResource instance die -Methode ausgeführt wird.

content
NotificationHubAvailabilityContent

Der Namespacename.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: