共用方式為


ServiceBusExtensions.GetServiceBusNamespaces Method

Definition

Overloads

GetServiceBusNamespaces(SubscriptionResource, CancellationToken)

Gets all the available namespaces within the subscription, irrespective of the resource groups.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/namespaces
  • Operation Id: Namespaces_List
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusNamespaceResource
GetServiceBusNamespaces(ResourceGroupResource)

Gets a collection of ServiceBusNamespaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetServiceBusNamespaces() instead.

GetServiceBusNamespaces(SubscriptionResource, CancellationToken)

Source:
ServiceBusExtensions.cs
Source:
ServiceBusExtensions.cs

Gets all the available namespaces within the subscription, irrespective of the resource groups.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/namespaces
  • Operation Id: Namespaces_List
  • Default Api Version: 2022-10-01-preview
  • Resource: ServiceBusNamespaceResource
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 instance 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 ServiceBusNamespaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetServiceBusNamespaces() instead.

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 instance the method will execute against.

Returns

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

Exceptions

resourceGroupResource is null.

Applies to