IVirtualMachineDiskOperations::GetDiskAsync Method (String^, CancellationToken)
Asynchronously retrieves information about a disk in the user disk repository.
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Task<VirtualMachineDiskGetResponse^>^ GetDiskAsync( String^ name, CancellationToken cancellationToken )
Parameters
- diskName
The name of the disk.
- cancellationToken
-
Type:
System.Threading::CancellationToken
The cancellation token.
Return Value
Type: System.Threading.Tasks::Task<VirtualMachineDiskGetResponse^>^The disk can be an operating system disk or a data disk.
The T:Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDiskGetDiskResponse object that contains the information about the disk.
For more information about retrieving disk information, see Get-AzureDisk
Show: