Udostępnij za pośrednictwem


RoutesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates a route in the specified route table.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.RouteInner> CreateOrUpdateAsync (this Microsoft.Azure.Management.Network.Fluent.IRoutesOperations operations, string resourceGroupName, string routeTableName, string routeName, Microsoft.Azure.Management.Network.Fluent.Models.RouteInner routeParameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Network.Fluent.IRoutesOperations * string * string * string * Microsoft.Azure.Management.Network.Fluent.Models.RouteInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.RouteInner>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IRoutesOperations, resourceGroupName As String, routeTableName As String, routeName As String, routeParameters As RouteInner, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RouteInner)

Parameters

operations
IRoutesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

routeTableName
String

The name of the route table.

routeName
String

The name of the route.

routeParameters
RouteInner

Parameters supplied to the create or update route operation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to