Share via


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

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

GetMobileNetworks(ResourceGroupResource)

Source:
MobileNetworkExtensions.cs

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

public static Azure.ResourceManager.MobileNetwork.MobileNetworkCollection GetMobileNetworks (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetMobileNetworks : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.MobileNetwork.MobileNetworkCollection
<Extension()>
Public Function GetMobileNetworks (resourceGroupResource As ResourceGroupResource) As MobileNetworkCollection

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