ServiceBusExtensions.GetServiceBusNamespaces Method

Definition

Overloads

Name Description
GetServiceBusNamespaces(SubscriptionResource, CancellationToken)

Gets all the available namespaces within the subscription, irrespective of the resource groups. <item> Mocking. To mock this method, please mock GetServiceBusNamespaces(CancellationToken) instead. </item>

GetServiceBusNamespaces(ResourceGroupResource)

Gets a collection of ServiceBusNamespaces in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetServiceBusNamespaces() instead. </item>

GetServiceBusNamespaces(SubscriptionResource, CancellationToken)

Source:
ServiceBusExtensions.cs
Source:
ServiceBusExtensions.cs

Gets all the available namespaces within the subscription, irrespective of the resource groups. <item> Mocking. To mock this method, please mock GetServiceBusNamespaces(CancellationToken) instead. </item>

public static Azure.Pageable<Azure.ResourceManager.ServiceBus.ServiceBusNamespaceResource> GetServiceBusNamespaces(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetServiceBusNamespaces : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceBus.ServiceBusNamespaceResource>
<Extension()>
Public Function GetServiceBusNamespaces (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ServiceBusNamespaceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ServiceBusNamespaceResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to

GetServiceBusNamespaces(ResourceGroupResource)

Source:
ServiceBusExtensions.cs
Source:
ServiceBusExtensions.cs

Gets a collection of ServiceBusNamespaces in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetServiceBusNamespaces() instead. </item>

public static Azure.ResourceManager.ServiceBus.ServiceBusNamespaceCollection GetServiceBusNamespaces(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetServiceBusNamespaces : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ServiceBus.ServiceBusNamespaceCollection
<Extension()>
Public Function GetServiceBusNamespaces (resourceGroupResource As ResourceGroupResource) As ServiceBusNamespaceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

Returns

An object representing collection of ServiceBusNamespaces and their operations over a ServiceBusNamespaceResource.

Exceptions

resourceGroupResource is null.

Applies to