VirtualNetworkPeeringsOperationsExtensions.ListAsync(IVirtualNetworkPeeringsOperations, String, String, CancellationToken) Method

Definition

Gets all virtual network peerings in a virtual network.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.VirtualNetworkPeering>> ListAsync (this Microsoft.Azure.Management.Network.IVirtualNetworkPeeringsOperations operations, string resourceGroupName, string virtualNetworkName, System.Threading.CancellationToken cancellationToken = null);
static member ListAsync : Microsoft.Azure.Management.Network.IVirtualNetworkPeeringsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.VirtualNetworkPeering>>

Parameters

operations
IVirtualNetworkPeeringsOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the resource group.

virtualNetworkName
System.String

The name of the virtual network.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<VirtualNetworkPeering>>

Applies to