共用方式為


RelayExtensions.GetRelayNamespaces Method

Definition

Overloads

GetRelayNamespaces(ResourceGroupResource)

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

GetRelayNamespaces(SubscriptionResource, CancellationToken)

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

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Relay/namespaces
  • Operation Id: Namespaces_List

GetRelayNamespaces(ResourceGroupResource)

Source:
RelayExtensions.cs
Source:
RelayExtensions.cs

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

public static Azure.ResourceManager.Relay.RelayNamespaceCollection GetRelayNamespaces (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetRelayNamespaces : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Relay.RelayNamespaceCollection
<Extension()>
Public Function GetRelayNamespaces (resourceGroupResource As ResourceGroupResource) As RelayNamespaceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of RelayNamespaceResources and their operations over a RelayNamespaceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetRelayNamespaces(SubscriptionResource, CancellationToken)

Source:
RelayExtensions.cs
Source:
RelayExtensions.cs

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.Pageable<Azure.ResourceManager.Relay.RelayNamespaceResource> GetRelayNamespaces (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetRelayNamespaces : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Relay.RelayNamespaceResource>
<Extension()>
Public Function GetRelayNamespaces (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of RelayNamespaceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to