Share via


NetworkWatchersOperationsExtensions.GetNextHopAsync Method

Definition

Gets the next hop from the specified VM.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.NextHopResultInner> GetNextHopAsync (this Microsoft.Azure.Management.Network.Fluent.INetworkWatchersOperations operations, string resourceGroupName, string networkWatcherName, Microsoft.Azure.Management.Network.Fluent.Models.NextHopParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member GetNextHopAsync : Microsoft.Azure.Management.Network.Fluent.INetworkWatchersOperations * string * string * Microsoft.Azure.Management.Network.Fluent.Models.NextHopParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.NextHopResultInner>
<Extension()>
Public Function GetNextHopAsync (operations As INetworkWatchersOperations, resourceGroupName As String, networkWatcherName As String, parameters As NextHopParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NextHopResultInner)

Parameters

operations
INetworkWatchersOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

networkWatcherName
String

The name of the network watcher.

parameters
NextHopParameters

Parameters that define the source and destination endpoint.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to