Share via


NetworkWatchersOperationsExtensions.ListAsync Method

Definition

Gets all network watchers by resource group.

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Management.Network.Models.NetworkWatcher>> ListAsync (this Microsoft.Azure.Management.Network.INetworkWatchersOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.Network.INetworkWatchersOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Management.Network.Models.NetworkWatcher>>
<Extension()>
Public Function ListAsync (operations As INetworkWatchersOperations, resourceGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of NetworkWatcher))

Parameters

operations
INetworkWatchersOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to