DeploymentOperationsExtensions.BeginSwappingAsync 方法 (IDeploymentOperations, String, DeploymentSwapParameters)

 

以异步方式启动一项服务的过渡和生产部署环境之间虚拟的 IP 地址交换。

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

语法

public static Task<AzureOperationResponse> BeginSwappingAsync(
    this IDeploymentOperations operations,
    string serviceName,
    DeploymentSwapParameters parameters
)
public:
[ExtensionAttribute]
static Task<AzureOperationResponse^>^ BeginSwappingAsync(
    IDeploymentOperations^ operations,
    String^ serviceName,
    DeploymentSwapParameters^ parameters
)
static member BeginSwappingAsync : 
        operations:IDeploymentOperations *
        serviceName:string *
        parameters:DeploymentSwapParameters -> Task<AzureOperationResponse>
<ExtensionAttribute>
Public Shared Function BeginSwappingAsync (
    operations As IDeploymentOperations,
    serviceName As String,
    parameters As DeploymentSwapParameters
) As Task(Of AzureOperationResponse)

参数

  • serviceName
    Type: System.String

    包含要交换的部署的云服务的名称。

返回值

Type: System.Threading.Tasks.Task<AzureOperationResponse>

OperationResponse 对象,包括 HTTP 状态代码和请求 id。

备注

有关交换部署的详细信息,请参阅以下资源:

请参阅

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

返回页首