Freigeben über


WebAppsOperationsExtensions.SwapSlotSlotAsync Methode

Definition

Tauscht zwei Bereitstellungsslots einer App aus.

public static System.Threading.Tasks.Task SwapSlotSlotAsync (this Microsoft.Azure.Management.WebSites.IWebAppsOperations operations, string resourceGroupName, string name, Microsoft.Azure.Management.WebSites.Models.CsmSlotEntity slotSwapEntity, string slot, System.Threading.CancellationToken cancellationToken = default);
static member SwapSlotSlotAsync : Microsoft.Azure.Management.WebSites.IWebAppsOperations * string * string * Microsoft.Azure.Management.WebSites.Models.CsmSlotEntity * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SwapSlotSlotAsync (operations As IWebAppsOperations, resourceGroupName As String, name As String, slotSwapEntity As CsmSlotEntity, slot As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameter

operations
IWebAppsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Name der Ressourcengruppe, zu der die Ressource gehört.

name
String

Name der App

slotSwapEntity
CsmSlotEntity

JSON-Objekt, das den Namen des Zielslots enthält. Weitere Informationen sind im Beispiel enthalten.

slot
String

Name des Quellslots. Wenn kein Slot angegeben ist, wird der Produktionsslot als Quellslot verwendet.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Hinweise

Beschreibung für Swaps zwei Bereitstellungsslots einer App.

Gilt für: