Share via


ScVmmExtensions.GetScVmmVirtualNetworks Method

Definition

Overloads

GetScVmmVirtualNetworks(ResourceGroupResource)

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

GetScVmmVirtualNetworks(SubscriptionResource, CancellationToken)

List of VirtualNetworks in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/virtualNetworks
  • Operation Id: VirtualNetworks_ListBySubscription
  • Default Api Version: 2023-10-07
  • Resource: ScVmmVirtualNetworkResource

GetScVmmVirtualNetworks(ResourceGroupResource)

Source:
ScVmmExtensions.cs

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

public static Azure.ResourceManager.ScVmm.ScVmmVirtualNetworkCollection GetScVmmVirtualNetworks (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetScVmmVirtualNetworks : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ScVmm.ScVmmVirtualNetworkCollection
<Extension()>
Public Function GetScVmmVirtualNetworks (resourceGroupResource As ResourceGroupResource) As ScVmmVirtualNetworkCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ScVmmVirtualNetworkResources and their operations over a ScVmmVirtualNetworkResource.

Exceptions

resourceGroupResource is null.

Applies to

GetScVmmVirtualNetworks(SubscriptionResource, CancellationToken)

Source:
ScVmmExtensions.cs

List of VirtualNetworks in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/virtualNetworks
  • Operation Id: VirtualNetworks_ListBySubscription
  • Default Api Version: 2023-10-07
  • Resource: ScVmmVirtualNetworkResource
public static Azure.Pageable<Azure.ResourceManager.ScVmm.ScVmmVirtualNetworkResource> GetScVmmVirtualNetworks (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetScVmmVirtualNetworks : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ScVmm.ScVmmVirtualNetworkResource>
<Extension()>
Public Function GetScVmmVirtualNetworks (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ScVmmVirtualNetworkResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to