VpnGatewaysOperationsExtensions.ListAsync Method

Definition

Lists all the VpnGateways in a subscription.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.VpnGateway>> ListAsync (this Microsoft.Azure.Management.Network.IVpnGatewaysOperations operations, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.Network.IVpnGatewaysOperations * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.VpnGateway>>
<Extension()>
Public Function ListAsync (operations As IVpnGatewaysOperations, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of VpnGateway))

Parameters

operations
IVpnGatewaysOperations

The operations group for this extension method.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to