Share via


DeploymentOperationsExtensions.Swap 方法

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

命名空间: Microsoft.WindowsAzure.Management.Compute
程序集: Microsoft.WindowsAzure.Management.Compute(在 Microsoft.WindowsAzure.Management.Compute.dll 中)

使用

用法
Dim operations As IDeploymentOperations
Dim serviceName As String
Dim parameters As DeploymentSwapParameters
Dim returnValue As OperationStatusResponse

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

语法

声明
<ExtensionAttribute> _
Public Shared Function Swap ( _
    operations As IDeploymentOperations, _
    serviceName As String, _
    parameters As DeploymentSwapParameters _
) As OperationStatusResponse
[ExtensionAttribute] 
public static OperationStatusResponse Swap (
    IDeploymentOperations operations,
    string serviceName,
    DeploymentSwapParameters parameters
)
[ExtensionAttribute] 
public:
static OperationStatusResponse^ Swap (
    IDeploymentOperations^ operations, 
    String^ serviceName, 
    DeploymentSwapParameters^ parameters
)
/** @attribute ExtensionAttribute() */ 
public static OperationStatusResponse Swap (
    IDeploymentOperations operations, 
    String serviceName, 
    DeploymentSwapParameters parameters
)
ExtensionAttribute 
public static function Swap (
    operations : IDeploymentOperations, 
    serviceName : String, 
    parameters : DeploymentSwapParameters
) : 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:

线程安全

此类型的所有公开静态(在 Visual Basic 中为共享)成员均为线程安全型成员。但不保证所有实例成员都是线程安全的。

平台

开发平台

Windows Vista、Windows 7 和 Windows Server 2008

目标平台

另请参阅

参考

DeploymentOperationsExtensions 类
DeploymentOperationsExtensions 成员
Microsoft.WindowsAzure.Management.Compute 命名空间