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.

C#
public static Azure.ResourceManager.Relay.RelayNamespaceCollection GetRelayNamespaces(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);

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

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

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
C#
public static Azure.Pageable<Azure.ResourceManager.Relay.RelayNamespaceResource> GetRelayNamespaces(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);

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

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview