Метод VirtualMachineOperationsExtensions.RestartAsync

Asynchronously restarts the specified Virtual Machine.

Пространство имен: Microsoft.WindowsAzure.Management.Compute
Сборка: Microsoft.WindowsAzure.Management.Compute (в Microsoft.WindowsAzure.Management.Compute.dll)

Использование

'Применение
Dim operations As IVirtualMachineOperations
Dim serviceName As String
Dim deploymentName As String
Dim virtualMachineName As String
Dim returnValue As Task(Of OperationStatusResponse)

returnValue = VirtualMachineOperationsExtensions.RestartAsync(operations, serviceName, deploymentName, virtualMachineName)

Синтаксис

'Декларация
<ExtensionAttribute> _
Public Shared Function RestartAsync ( _
    operations As IVirtualMachineOperations, _
    serviceName As String, _
    deploymentName As String, _
    virtualMachineName As String _
) As Task(Of OperationStatusResponse)
[ExtensionAttribute] 
public static Task<OperationStatusResponse> RestartAsync (
    IVirtualMachineOperations operations,
    string serviceName,
    string deploymentName,
    string virtualMachineName
)
[ExtensionAttribute] 
public:
static Task<OperationStatusResponse^>^ RestartAsync (
    IVirtualMachineOperations^ operations, 
    String^ serviceName, 
    String^ deploymentName, 
    String^ virtualMachineName
)
/** @attribute ExtensionAttribute() */ 
public static Task<OperationStatusResponse> RestartAsync (
    IVirtualMachineOperations operations, 
    String serviceName, 
    String deploymentName, 
    String virtualMachineName
)
ExtensionAttribute 
public static function RestartAsync (
    operations : IVirtualMachineOperations, 
    serviceName : String, 
    deploymentName : String, 
    virtualMachineName : String
) : Task<OperationStatusResponse>

Параметры

  • serviceName
    The name of the cloud service that contains the Virtual Machine.
  • deploymentName
    The name of the deployment.
  • virtualMachineName
    The name of the Virtual Machine that should be restarted.

Возвращаемое значение

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 restarting a Virtual Machine, see the following resources:

Многопоточное использование

Все открытые статические члены метода (Shared в Visual Basic) этого типа потокобезопасны. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.

Платформы

Платформы разработки

Windows Vista, Windows 7 и Windows Server 2008

Целевые платформы

См. также

Справочник

VirtualMachineOperationsExtensions - класс
Члены VirtualMachineOperationsExtensions
Microsoft.WindowsAzure.Management.Compute - пространство имен