NotificationHubsExtensions.GetNotificationHubNamespaces 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.
Overloads
GetNotificationHubNamespaces(ResourceGroupResource) |
Gets a collection of NotificationHubNamespaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNotificationHubNamespaces() instead. |
GetNotificationHubNamespaces(SubscriptionResource, String, Nullable<Int32>, CancellationToken) |
Lists all the available namespaces within the subscription.
|
GetNotificationHubNamespaces(ResourceGroupResource)
Gets a collection of NotificationHubNamespaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNotificationHubNamespaces() instead.
public static Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceCollection GetNotificationHubNamespaces (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetNotificationHubNamespaces : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceCollection
<Extension()>
Public Function GetNotificationHubNamespaces (resourceGroupResource As ResourceGroupResource) As NotificationHubNamespaceCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of NotificationHubNamespaceResources and their operations over a NotificationHubNamespaceResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetNotificationHubNamespaces(SubscriptionResource, String, Nullable<Int32>, CancellationToken)
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.Pageable<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource> GetNotificationHubNamespaces (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string skipToken = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
static member GetNotificationHubNamespaces : Azure.ResourceManager.Resources.SubscriptionResource * string * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource>
<Extension()>
Public Function GetNotificationHubNamespaces (subscriptionResource As SubscriptionResource, Optional skipToken As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of NotificationHubNamespaceResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance 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.