다음을 통해 공유


VirtualMachineOperationsExtensions.RestartAsync 메서드

Asynchronously restarts the specified Virtual Machine.

네임스페이스: Microsoft.WindowsAzure.Management.Compute
어셈블리: Microsoft.WindowsAzure.Management.Compute.dll의 Microsoft.WindowsAzure.Management.Compute

사용량

‘사용 방법
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:

스레드 보안

이 유형의 public static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

플랫폼

개발 플랫폼

Windows Vista, Windows 7 및 Windows Server 2008

대상 플랫폼

참고 항목

참조

VirtualMachineOperationsExtensions 클래스
VirtualMachineOperationsExtensions 멤버
Microsoft.WindowsAzure.Management.Compute 네임스페이스