Megosztás a következőn keresztül:


IExpressRoutePortsOperations.CreateOrUpdateWithHttpMessagesAsync Method

Definition

Creates or updates the specified ExpressRoutePort resource.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Network.Models.ExpressRoutePort>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string expressRoutePortName, Microsoft.Azure.Management.Network.Models.ExpressRoutePort parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.Network.Models.ExpressRoutePort * 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.ExpressRoutePort>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, expressRoutePortName As String, parameters As ExpressRoutePort, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ExpressRoutePort))

Parameters

resourceGroupName
String

The name of the resource group.

expressRoutePortName
String

The name of the ExpressRoutePort resource.

parameters
ExpressRoutePort

Parameters supplied to the create ExpressRoutePort operation.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to