NotificationHubsExtensions.GetNotificationHubNamespacesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Lists all the available namespaces within the subscription. <item> Mocking. To mock this method, please mock GetNotificationHubNamespacesAsync(String, Nullable<Int32>, CancellationToken) instead. </item>
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 the method will execute against.
- skipToken
- String
Skip token for subsequent requests.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of NotificationHubNamespaceResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource is null.