Share via


DeploymentOperationsExtensions.BeginUpgradingBySlot 方法

Initiates an upgrade of role instances in a deployment based on where the application is deployed.

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

使用

用法
Dim operations As IDeploymentOperations
Dim serviceName As String
Dim deploymentSlot As DeploymentSlot
Dim parameters As DeploymentUpgradeParameters
Dim returnValue As AzureOperationResponse

returnValue = DeploymentOperationsExtensions.BeginUpgradingBySlot(operations, serviceName, deploymentSlot, parameters)

语法

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

参数

  • serviceName
    The name of cloud service that contains the deployment.
  • deploymentSlot
    The name of the environment in which the application is deployed.

    Possible values are:

返回值

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 命名空间