共用方式為


WebAppsOperationsExtensions.UpdateVnetConnectionGatewaySlotAsync 方法

定義

將閘道新增至連線虛擬網路 (PUT) ,或將其更新 (PATCH) 。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.VnetGatewayInner> UpdateVnetConnectionGatewaySlotAsync(this Microsoft.Azure.Management.AppService.Fluent.IWebAppsOperations operations, string resourceGroupName, string name, string vnetName, string gatewayName, Microsoft.Azure.Management.AppService.Fluent.Models.VnetGatewayInner connectionEnvelope, string slot, System.Threading.CancellationToken cancellationToken = default);
static member UpdateVnetConnectionGatewaySlotAsync : Microsoft.Azure.Management.AppService.Fluent.IWebAppsOperations * string * string * string * string * Microsoft.Azure.Management.AppService.Fluent.Models.VnetGatewayInner * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.VnetGatewayInner>
<Extension()>
Public Function UpdateVnetConnectionGatewaySlotAsync (operations As IWebAppsOperations, resourceGroupName As String, name As String, vnetName As String, gatewayName As String, connectionEnvelope As VnetGatewayInner, slot As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VnetGatewayInner)

參數

operations
IWebAppsOperations

這個擴充方法的作業群組。

resourceGroupName
String

資源所屬資源群組的名稱。

name
String

應用程式的名稱。

vnetName
String

虛擬網路的名稱。

gatewayName
String

閘道的名稱。 目前唯一支援的字串是 「primary」。

connectionEnvelope
VnetGatewayInner

要更新此閘道的屬性。

slot
String

部署位置的名稱。 如果未指定位置,API 會新增或更新生產位置虛擬網路的閘道。

cancellationToken
CancellationToken

取消語彙基元。

傳回

備註

將閘道新增至已連線虛擬網路 (PUT) 或更新 (PATCH) 的描述。

適用於