VirtualMachineImageOperationsExtensions.DeleteAsync Method
Asynchronously deletes the specified operating system image from the user image repository.
Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Usage
'Usage
Dim operations As IVirtualMachineImageOperations
Dim imageName As String
Dim deleteFromStorage As Boolean
Dim returnValue As Task(Of OperationResponse)
returnValue = VirtualMachineImageOperationsExtensions.DeleteAsync(operations, imageName, deleteFromStorage)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function DeleteAsync ( _
operations As IVirtualMachineImageOperations, _
imageName As String, _
deleteFromStorage As Boolean _
) As Task(Of OperationResponse)
[ExtensionAttribute]
public static Task<OperationResponse> DeleteAsync (
IVirtualMachineImageOperations operations,
string imageName,
bool deleteFromStorage
)
[ExtensionAttribute]
public:
static Task<OperationResponse^>^ DeleteAsync (
IVirtualMachineImageOperations^ operations,
String^ imageName,
bool deleteFromStorage
)
/** @attribute ExtensionAttribute() */
public static Task<OperationResponse> DeleteAsync (
IVirtualMachineImageOperations operations,
String imageName,
boolean deleteFromStorage
)
ExtensionAttribute
public static function DeleteAsync (
operations : IVirtualMachineImageOperations,
imageName : String,
deleteFromStorage : boolean
) : Task<OperationResponse>
Parameters
- operations
The IVirtualMachineImageOperations object that specifies the operating system image operations.
- imageName
The name of the image to delete.
- deleteFromStorage
Indicates whether the source blob for the image should also be deleted from storage. true if the source blob should be deleted; otherwise, false.
Return Value
An OperationResponse object that includes an HTTP status code and request ID.
Remarks
For more information about deleting images, see the following resources:
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7 and Windows Server 2008
Target Platforms
See Also
Reference
VirtualMachineImageOperationsExtensions Class
VirtualMachineImageOperationsExtensions Members
Microsoft.WindowsAzure.Management.Compute Namespace