IDeploymentOperations.UpdateStatusByDeploymentNameAsync 方法

Asynchronously changes the running status of a deployment.

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

使用

用法
Dim instance As IDeploymentOperations
Dim serviceName As String
Dim deploymentName As String
Dim parameters As DeploymentUpdateStatusParameters
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of OperationStatusResponse)

returnValue = instance.UpdateStatusByDeploymentNameAsync(serviceName, deploymentName, parameters, cancellationToken)

语法

声明
Function UpdateStatusByDeploymentNameAsync ( _
    serviceName As String, _
    deploymentName As String, _
    parameters As DeploymentUpdateStatusParameters, _
    cancellationToken As CancellationToken _
) As Task(Of OperationStatusResponse)
Task<OperationStatusResponse> UpdateStatusByDeploymentNameAsync (
    string serviceName,
    string deploymentName,
    DeploymentUpdateStatusParameters parameters,
    CancellationToken cancellationToken
)
Task<OperationStatusResponse^>^ UpdateStatusByDeploymentNameAsync (
    String^ serviceName, 
    String^ deploymentName, 
    DeploymentUpdateStatusParameters^ parameters, 
    CancellationToken cancellationToken
)
Task<OperationStatusResponse> UpdateStatusByDeploymentNameAsync (
    String serviceName, 
    String deploymentName, 
    DeploymentUpdateStatusParameters parameters, 
    CancellationToken cancellationToken
)
function UpdateStatusByDeploymentNameAsync (
    serviceName : String, 
    deploymentName : String, 
    parameters : DeploymentUpdateStatusParameters, 
    cancellationToken : CancellationToken
) : Task<OperationStatusResponse>

参数

  • serviceName
    The name of cloud service that contains the deployment.
  • deploymentName
    The name of the deployment of which the status should be changed.
  • cancellationToken
    The cancellation token.

返回值

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 changing the status of a deployment, see Update Deployment Status.

线程安全

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

平台

开发平台

Windows Vista、Windows 7 和 Windows Server 2008

目标平台

另请参阅

参考

IDeploymentOperations 接口
IDeploymentOperations 成员
Microsoft.WindowsAzure.Management.Compute 命名空间