Partager via


IHubRouteTablesOperations.CreateOrUpdateWithHttpMessagesAsync Méthode

Définition

Crée une ressource RouteTable si elle n’existe pas, sinon met à jour l’objet RouteTable existant.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Network.Models.HubRouteTable>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string virtualHubName, string routeTableName, Microsoft.Azure.Management.Network.Models.HubRouteTable routeTableParameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.Network.Models.HubRouteTable * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Network.Models.HubRouteTable>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, virtualHubName As String, routeTableName As String, routeTableParameters As HubRouteTable, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of HubRouteTable))

Paramètres

resourceGroupName
String

Nom du groupe de ressources du VirtualHub.

virtualHubName
String

Nom du VirtualHub.

routeTableName
String

Nom du RouteTable.

routeTableParameters
HubRouteTable

Paramètres fournis pour créer ou mettre à jour RouteTable.

customHeaders
Dictionary<String,List<String>>

En-têtes qui seront ajoutés à la demande.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Exceptions

Levée lorsque l’opération a retourné un code status non valide

Levée lorsque la réponse ne peut pas être désérialisée

Levée lorsqu’un paramètre requis a la valeur Null

S’applique à