DeploymentOperationsExtensions.BeginUpgradingByNameAsync 方法

Asynchronously initiates an upgrade of role instances in a specified deployment.

命名空间: 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 DeploymentUpgradeParameters
Dim returnValue As Task(Of AzureOperationResponse)

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

语法

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

参数

  • serviceName
    The name of cloud service that contains the deployment.
  • deploymentName
    The name of the deployment to upgrade.

返回值

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

备注

For more information about upgrading a deployment, see Upgrade Deployment.

线程安全

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

平台

开发平台

Windows Vista、Windows 7 和 Windows Server 2008

目标平台

另请参阅

参考

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