WebSiteOperationsExtensions.SwapSlotsAsync メソッド (IWebSiteOperations, String, String, String, String)
Web サイトを 1 つのスロットから別のスロットを切り替えることができます。
名前空間: Microsoft.WindowsAzure
アセンブリ: Microsoft.WindowsAzure.Management.WebSites (Microsoft.WindowsAzure.Management.WebSites.dll 内)
構文
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)
パラメーター
operations
Type: Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperationsMicrosoft.WindowsAzure.Management.WebSites.IWebSiteOperations への参照。
webSpaceName
Type: System.String必須です。 Web スペースの名前。
webSiteName
Type: System.String必須です。 Web サイトの名前です。
sourceSlotName
Type: System.String必須です。 スワップ (ソース) には、最初の web サイト スロットの名前。
targetSlotName
Type: System.String必須です。 2 番目の web サイト スロット スワップ (ターゲット) の名前。
戻り値
Type: System.Threading.Tasks.Task<WebSiteOperationStatusResponse>
応答本文を示すかどうかそれが正常に完了、inprogress、タイムアウトしましたが失敗した、指定された実行時間の長い操作の状態が含まれています。 このステータスは、Get Operation Status 操作自体に対して返される HTTP ステータス コードとは異なることに注意してください。 実行時間の長い操作に失敗した場合、応答本文には、失敗に関するエラー情報が含まれます。
参照
WebSiteOperationsExtensions クラス
Microsoft.WindowsAzure 名前空間
トップに戻る