Freigeben über


WebAppsOperationsExtensions.SwapSlotWithProductionAsync Methode

Definition

Tauscht zwei Bereitstellungsslots einer App aus.

public static System.Threading.Tasks.Task SwapSlotWithProductionAsync (this Microsoft.Azure.Management.WebSites.IWebAppsOperations operations, string resourceGroupName, string name, Microsoft.Azure.Management.WebSites.Models.CsmSlotEntity slotSwapEntity, System.Threading.CancellationToken cancellationToken = default);
static member SwapSlotWithProductionAsync : Microsoft.Azure.Management.WebSites.IWebAppsOperations * string * string * Microsoft.Azure.Management.WebSites.Models.CsmSlotEntity * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SwapSlotWithProductionAsync (operations As IWebAppsOperations, resourceGroupName As String, name As String, slotSwapEntity As CsmSlotEntity, 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 Zielslotnamen enthält. Weitere Informationen sind im Beispiel enthalten.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Hinweise

Beschreibung für Wechsel von zwei Bereitstellungsslots einer App.

Gilt für: