Share via


IVirtualMachineVMImageOperations.BeginDeletingAsync Method (String, Boolean, CancellationToken)

 

The Begin Deleting Virtual Machine Image operation deletes the specified virtual machine image.

Namespace:   Microsoft.WindowsAzure.Management.Compute
Assembly:  Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Syntax

Task<AzureOperationResponse> BeginDeletingAsync(
    string vmImageName,
    bool deleteFromStorage,
    CancellationToken cancellationToken
)
Task<AzureOperationResponse^>^ BeginDeletingAsync(
    String^ vmImageName,
    bool deleteFromStorage,
    CancellationToken cancellationToken
)
abstract BeginDeletingAsync : 
        vmImageName:string *
        deleteFromStorage:bool *
        cancellationToken:CancellationToken -> Task<AzureOperationResponse>
Function BeginDeletingAsync (
    vmImageName As String,
    deleteFromStorage As Boolean,
    cancellationToken As CancellationToken
) As Task(Of AzureOperationResponse)

Parameters

  • vmImageName
    Type: System.String

    The name of the virtual machine image to delete.

  • deleteFromStorage
    Type: System.Boolean

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

Return Value

Type: System.Threading.Tasks.Task<AzureOperationResponse>

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

See Also

IVirtualMachineVMImageOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top