Share via


DeploymentOperationsExtensions.SwapAsync 메서드

Asynchronously swaps the virtual IP addresses between the staging and production deployment environments for a service.

네임스페이스: Microsoft.WindowsAzure.Management.Compute
어셈블리: Microsoft.WindowsAzure.Management.Compute.dll의 Microsoft.WindowsAzure.Management.Compute

사용량

‘사용 방법
Dim operations As IDeploymentOperations
Dim serviceName As String
Dim parameters As DeploymentSwapParameters
Dim returnValue As Task(Of OperationStatusResponse)

returnValue = DeploymentOperationsExtensions.SwapAsync(operations, serviceName, parameters)

구문

‘선언
<ExtensionAttribute> _
Public Shared Function SwapAsync ( _
    operations As IDeploymentOperations, _
    serviceName As String, _
    parameters As DeploymentSwapParameters _
) As Task(Of OperationStatusResponse)
[ExtensionAttribute] 
public static Task<OperationStatusResponse> SwapAsync (
    IDeploymentOperations operations,
    string serviceName,
    DeploymentSwapParameters parameters
)
[ExtensionAttribute] 
public:
static Task<OperationStatusResponse^>^ SwapAsync (
    IDeploymentOperations^ operations, 
    String^ serviceName, 
    DeploymentSwapParameters^ parameters
)
/** @attribute ExtensionAttribute() */ 
public static Task<OperationStatusResponse> SwapAsync (
    IDeploymentOperations operations, 
    String serviceName, 
    DeploymentSwapParameters parameters
)
ExtensionAttribute 
public static function SwapAsync (
    operations : IDeploymentOperations, 
    serviceName : String, 
    parameters : DeploymentSwapParameters
) : Task<OperationStatusResponse>

매개 변수

  • serviceName
    The name of the cloud service that contains the deployments to be swapped.

반환 값

The ComputeOperationStatusResponse object that contains the status of the operation.

설명

If the asynchronous operation succeeds, the response includes the HTTP status code for the successful request. If the asynchronous operation failed, the response includes the HTTP status code for the failed request, and also includes error information about the failure.

For more information about swapping deployments, see the following resources:

스레드 보안

이 유형의 public static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

플랫폼

개발 플랫폼

Windows Vista, Windows 7 및 Windows Server 2008

대상 플랫폼

참고 항목

참조

DeploymentOperationsExtensions 클래스
DeploymentOperationsExtensions 멤버
Microsoft.WindowsAzure.Management.Compute 네임스페이스