DeploymentOperationsExtensions.BeginRebootingRoleInstanceByDeploymentSlotAsync 方法

Asynchronously initiates the reboot of a specified role instance that is running in the specified 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 roleInstanceName As String
Dim returnValue As Task(Of AzureOperationResponse)

returnValue = DeploymentOperationsExtensions.BeginRebootingRoleInstanceByDeploymentSlotAsync(operations, serviceName, deploymentSlot, roleInstanceName)

语法

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

参数

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

    Possible values are:

  • roleInstanceName
    The name of the role instance that should be rebooted.

返回值

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

备注

For more information about rebooting role instances, see Reboot Role Instance.

When you reboot a role instance, the instance is taken offline, the underlying operating system is restarted for that instance, and the instance is brought back online. Any data that is written to the local disk is persisted across reboots. Any data that is in-memory is lost.

线程安全

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

平台

开发平台

Windows Vista、Windows 7 和 Windows Server 2008

目标平台

另请参阅

参考

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