Condividi tramite


NetworkExtensions.GetNetworkProfiles Method

Definition

Overloads

GetNetworkProfiles(ResourceGroupResource)

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

GetNetworkProfiles(SubscriptionResource, CancellationToken)

Gets all the network profiles in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkProfiles
  • Operation Id: NetworkProfiles_ListAll
  • Default Api Version: 2024-03-01
  • Resource: NetworkProfileResource

GetNetworkProfiles(ResourceGroupResource)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

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

public static Azure.ResourceManager.Network.NetworkProfileCollection GetNetworkProfiles (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetNetworkProfiles : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.NetworkProfileCollection
<Extension()>
Public Function GetNetworkProfiles (resourceGroupResource As ResourceGroupResource) As NetworkProfileCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of NetworkProfileResources and their operations over a NetworkProfileResource.

Exceptions

resourceGroupResource is null.

Applies to

GetNetworkProfiles(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets all the network profiles in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkProfiles
  • Operation Id: NetworkProfiles_ListAll
  • Default Api Version: 2024-03-01
  • Resource: NetworkProfileResource
public static Azure.Pageable<Azure.ResourceManager.Network.NetworkProfileResource> GetNetworkProfiles (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkProfiles : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.NetworkProfileResource>
<Extension()>
Public Function GetNetworkProfiles (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of NetworkProfileResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to