Dela via


BastionHostsOperationsExtensions.ListAsync Method

Definition

Lists all Bastion Hosts in a subscription.

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

Parameters

operations
IBastionHostsOperations

The operations group for this extension method.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to