共用方式為


RelayExtensions.GetRelayNamespacesAsync Method

Definition

Lists all the available namespaces within the subscription regardless of the resourceGroups.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Relay/namespaces
  • Operation Id: Namespaces_List
public static Azure.AsyncPageable<Azure.ResourceManager.Relay.RelayNamespaceResource> GetRelayNamespacesAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetRelayNamespacesAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Relay.RelayNamespaceResource>
<Extension()>
Public Function GetRelayNamespacesAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of RelayNamespaceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to