共用方式為


MockableRelaySubscriptionResource.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 virtual Azure.AsyncPageable<Azure.ResourceManager.Relay.RelayNamespaceResource> GetRelayNamespacesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetRelayNamespacesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Relay.RelayNamespaceResource>
override this.GetRelayNamespacesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Relay.RelayNamespaceResource>
Public Overridable Function GetRelayNamespacesAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of RelayNamespaceResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to