다음을 통해 공유


VirtualMachineOperationsExtensions.Delete 메서드

The Delete Role operation deletes the specified virtual machine. (see https://msdn.microsoft.com/library/windowsazure/jj157184.aspx for more information)

네임스페이스: 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 deleteFromStorage As Boolean
Dim returnValue As OperationStatusResponse

returnValue = VirtualMachineOperationsExtensions.Delete(operations, serviceName, deploymentName, virtualMachineName, deleteFromStorage)

구문

‘선언
<ExtensionAttribute> _
Public Shared Function Delete ( _
    operations As IVirtualMachineOperations, _
    serviceName As String, _
    deploymentName As String, _
    virtualMachineName As String, _
    deleteFromStorage As Boolean _
) As OperationStatusResponse
[ExtensionAttribute] 
public static OperationStatusResponse Delete (
    IVirtualMachineOperations operations,
    string serviceName,
    string deploymentName,
    string virtualMachineName,
    bool deleteFromStorage
)
[ExtensionAttribute] 
public:
static OperationStatusResponse^ Delete (
    IVirtualMachineOperations^ operations, 
    String^ serviceName, 
    String^ deploymentName, 
    String^ virtualMachineName, 
    bool deleteFromStorage
)
/** @attribute ExtensionAttribute() */ 
public static OperationStatusResponse Delete (
    IVirtualMachineOperations operations, 
    String serviceName, 
    String deploymentName, 
    String virtualMachineName, 
    boolean deleteFromStorage
)
ExtensionAttribute 
public static function Delete (
    operations : IVirtualMachineOperations, 
    serviceName : String, 
    deploymentName : String, 
    virtualMachineName : String, 
    deleteFromStorage : boolean
) : OperationStatusResponse

매개 변수

  • operations
    Reference to the Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations.
  • serviceName
    Required. The name of your service.
  • deploymentName
    Required. The name of your deployment.
  • virtualMachineName
    Required. The name of the virtual machine to delete.
  • deleteFromStorage
    Required. Specifies that the source blob(s) for the virtual machine should also be deleted from storage.

반환 값

The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is inprogress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure.

스레드 보안

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

플랫폼

개발 플랫폼

Windows Vista, Windows 7 및 Windows Server 2008

대상 플랫폼

참고 항목

참조

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