共用方式為


VirtualMachineDiskOperationsExtensions.DeleteDiskAsync Method

Definition

The Delete Disk operation deletes the specified data or operating system disk from your image repository. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157200.aspx for more information)

public static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> DeleteDiskAsync (this Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations operations, string name, bool deleteFromStorage);
static member DeleteDiskAsync : Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations * string * bool -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
<Extension()>
Public Function DeleteDiskAsync (operations As IVirtualMachineDiskOperations, name As String, deleteFromStorage As Boolean) As Task(Of AzureOperationResponse)

Parameters

operations
IVirtualMachineDiskOperations

Reference to the Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations.

name
String

Required. The name of the disk to delete.

deleteFromStorage
Boolean

Required. Specifies that the source blob for the disk should also be deleted from storage.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to