SubnetsOperationsExtensions.ListAsync(ISubnetsOperations, String, String, CancellationToken) Method

Definition

Gets all subnets in a virtual network.

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

Parameters

operations
ISubnetsOperations

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<SubnetInner>>

Applies to