Freigeben über


WebAppsOperationsExtensions.ApplySlotConfigurationSlotAsync Methode

Definition

Wendet die Konfigurationseinstellungen aus dem Zielslot auf den aktuellen Slot an.

public static System.Threading.Tasks.Task ApplySlotConfigurationSlotAsync (this Microsoft.Azure.Management.AppService.Fluent.IWebAppsOperations operations, string resourceGroupName, string name, Microsoft.Azure.Management.AppService.Fluent.Models.CsmSlotEntity slotSwapEntity, string slot, System.Threading.CancellationToken cancellationToken = default);
static member ApplySlotConfigurationSlotAsync : Microsoft.Azure.Management.AppService.Fluent.IWebAppsOperations * string * string * Microsoft.Azure.Management.AppService.Fluent.Models.CsmSlotEntity * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function ApplySlotConfigurationSlotAsync (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 Zielslotnamen 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 Wendet die Konfigurationseinstellungen vom Zielslot auf den aktuellen Slot an.

Gilt für: