MobileNetworkExtensions.GetMobileNetworks Method

Definition

Overloads

GetMobileNetworks(SubscriptionResource, CancellationToken)

Lists all the mobile networks in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.MobileNetwork/mobileNetworks
  • Operation Id: MobileNetworks_ListBySubscription
  • Default Api Version: 2024-02-01
  • Resource: MobileNetworkResource
GetMobileNetworks(ResourceGroupResource)

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

GetMobileNetworks(SubscriptionResource, CancellationToken)

Source:
MobileNetworkExtensions.cs

Lists all the mobile networks in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.MobileNetwork/mobileNetworks
  • Operation Id: MobileNetworks_ListBySubscription
  • Default Api Version: 2024-02-01
  • Resource: MobileNetworkResource
C#
public static Azure.Pageable<Azure.ResourceManager.MobileNetwork.MobileNetworkResource> GetMobileNetworks(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 MobileNetworkResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

GetMobileNetworks(ResourceGroupResource)

Source:
MobileNetworkExtensions.cs

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

C#
public static Azure.ResourceManager.MobileNetwork.MobileNetworkCollection GetMobileNetworks(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of MobileNetworkResources and their operations over a MobileNetworkResource.

Exceptions

resourceGroupResource is null.

Applies to

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest