Metodo WebSiteOperationsExtensions.SwapSlotsAsync (IWebSiteOperations, String, String, String, String)
È possibile scambiare un sito web da uno slot a un altro slot.
Spazio dei nomi: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Sintassi
public static Task<WebSiteOperationStatusResponse> SwapSlotsAsync(
this IWebSiteOperations operations,
string webSpaceName,
string webSiteName,
string sourceSlotName,
string targetSlotName
)
public:
[ExtensionAttribute]
static Task<WebSiteOperationStatusResponse^>^ SwapSlotsAsync(
IWebSiteOperations^ operations,
String^ webSpaceName,
String^ webSiteName,
String^ sourceSlotName,
String^ targetSlotName
)
static member SwapSlotsAsync :
operations:IWebSiteOperations *
webSpaceName:string *
webSiteName:string *
sourceSlotName:string *
targetSlotName:string -> Task<WebSiteOperationStatusResponse>
<ExtensionAttribute>
Public Shared Function SwapSlotsAsync (
operations As IWebSiteOperations,
webSpaceName As String,
webSiteName As String,
sourceSlotName As String,
targetSlotName As String
) As Task(Of WebSiteOperationStatusResponse)
Parametri
operations
Type: Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperationsRiferimento di Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
webSpaceName
Type: System.StringObbligatorio. Il nome dello spazio web.
webSiteName
Type: System.StringObbligatorio. Nome del sito Web.
sourceSlotName
Type: System.StringObbligatorio. Il nome del primo slot di sito web di swap (origine).
targetSlotName
Type: System.StringObbligatorio. Nome del secondo slot di sito web di scambiare con (destinazione).
Valore restituito
Type: System.Threading.Tasks.Task<WebSiteOperationStatusResponse>
Il corpo della risposta contiene lo stato dell'operazione a esecuzione prolungata, che indica se ha avuto esito positivo, è in corso, è scaduta o non è riuscita. Si noti che questo stato è diverso dal codice di stato HTTP restituito per l'operazione Get Operation Status stessa. Se l'operazione a esecuzione prolungata non riuscita, il corpo della risposta include informazioni sull'errore relative all'errore.
Vedere anche
Classe WebSiteOperationsExtensions
Spazio dei nomi Microsoft.WindowsAzure
Torna all'inizio