Share via


VirtualMachineDiskOperationsExtensions.ListDisksAsync Method

Asynchronously retrieves a list of disks from the user disk repository.

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

Usage

'Usage
Dim operations As IVirtualMachineDiskOperations
Dim returnValue As Task(Of VirtualMachineDiskListResponse)

returnValue = VirtualMachineDiskOperationsExtensions.ListDisksAsync(operations)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ListDisksAsync ( _
    operations As IVirtualMachineDiskOperations _
) As Task(Of VirtualMachineDiskListResponse)
[ExtensionAttribute] 
public static Task<VirtualMachineDiskListResponse> ListDisksAsync (
    IVirtualMachineDiskOperations operations
)
[ExtensionAttribute] 
public:
static Task<VirtualMachineDiskListResponse^>^ ListDisksAsync (
    IVirtualMachineDiskOperations^ operations
)
/** @attribute ExtensionAttribute() */ 
public static Task<VirtualMachineDiskListResponse> ListDisksAsync (
    IVirtualMachineDiskOperations operations
)
ExtensionAttribute 
public static function ListDisksAsync (
    operations : IVirtualMachineDiskOperations
) : Task<VirtualMachineDiskListResponse>

Parameters

Return Value

The VirtualMachineDiskListResponse object that contains the list of disks.

Remarks

For more information about retrieving a list of disks, 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, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

VirtualMachineDiskOperationsExtensions Class
VirtualMachineDiskOperationsExtensions Members
Microsoft.WindowsAzure.Management.Compute Namespace