NatGatewaysOperations.ListAsync(String, CancellationToken) Method

Definition

Gets all nat gateways in a resource group.

public virtual Azure.AsyncPageable<Azure.ResourceManager.Network.Models.NatGateway> ListAsync (string resourceGroupName, System.Threading.CancellationToken cancellationToken = default);
abstract member ListAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.Models.NatGateway>
override this.ListAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.Models.NatGateway>
Public Overridable Function ListAsync (resourceGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NatGateway)

Parameters

resourceGroupName
System.String

The name of the resource group.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

AsyncPageable<NatGateway>

Exceptions

System.ArgumentNullException

resourceGroupName is null.

Applies to