DeploymentOperationsExtensions.RollbackUpdateOrUpgradeByDeploymentNameAsync 方法

Asynchronously cancels an in-progress update of a configuration and returns the deployment to the state it was in before the update was started.

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

使用

用法
Dim operations As IDeploymentOperations
Dim serviceName As String
Dim deploymentName As String
Dim parameters As DeploymentRollbackUpdateOrUpgradeParameters
Dim returnValue As Task(Of AzureOperationResponse)

returnValue = DeploymentOperationsExtensions.RollbackUpdateOrUpgradeByDeploymentNameAsync(operations, serviceName, deploymentName, parameters)

语法

声明
<ExtensionAttribute> _
Public Shared Function RollbackUpdateOrUpgradeByDeploymentNameAsync ( _
    operations As IDeploymentOperations, _
    serviceName As String, _
    deploymentName As String, _
    parameters As DeploymentRollbackUpdateOrUpgradeParameters _
) As Task(Of AzureOperationResponse)
[ExtensionAttribute] 
public static Task<AzureOperationResponse> RollbackUpdateOrUpgradeByDeploymentNameAsync (
    IDeploymentOperations operations,
    string serviceName,
    string deploymentName,
    DeploymentRollbackUpdateOrUpgradeParameters parameters
)
[ExtensionAttribute] 
public:
static Task<AzureOperationResponse^>^ RollbackUpdateOrUpgradeByDeploymentNameAsync (
    IDeploymentOperations^ operations, 
    String^ serviceName, 
    String^ deploymentName, 
    DeploymentRollbackUpdateOrUpgradeParameters^ parameters
)
/** @attribute ExtensionAttribute() */ 
public static Task<AzureOperationResponse> RollbackUpdateOrUpgradeByDeploymentNameAsync (
    IDeploymentOperations operations, 
    String serviceName, 
    String deploymentName, 
    DeploymentRollbackUpdateOrUpgradeParameters parameters
)
ExtensionAttribute 
public static function RollbackUpdateOrUpgradeByDeploymentNameAsync (
    operations : IDeploymentOperations, 
    serviceName : String, 
    deploymentName : String, 
    parameters : DeploymentRollbackUpdateOrUpgradeParameters
) : Task<AzureOperationResponse>

参数

  • serviceName
    The name of the cloud service that contains the deployment.
  • deploymentName
    The name of the deployment to be rolled back.

返回值

An OperationResponse object that includes an HTTP status code and request ID.

备注

For more information about rolling back an update of a deployment, see Rollback Update Or Upgrade.

The role back of an update can only be called when an update is in progress on the deployment.

线程安全

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

平台

开发平台

Windows Vista、Windows 7 和 Windows Server 2008

目标平台

另请参阅

参考

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