Dela via


NotificationHubsExtensions.GetNotificationHubNamespacesAsync Method

Definition

Lists all the available namespaces within the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces
  • Operation Id: Namespaces_ListAll
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubNamespaceResource
public static Azure.AsyncPageable<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource> GetNotificationHubNamespacesAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skipToken = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
static member GetNotificationHubNamespacesAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource>
<Extension()>
Public Function GetNotificationHubNamespacesAsync (subscriptionResource As SubscriptionResource, Optional skipToken As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NotificationHubNamespaceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

skipToken
String

Skip token for subsequent requests.

top
Nullable<Int32>

Maximum number of results to return.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of NotificationHubNamespaceResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to