共用方式為


IVirtualMachineDiskOperations.GetDiskAsync(String, CancellationToken) Method

Definition

The Get Disk operation retrieves a disk from the user image repository. The disk can be an operating system disk or a data disk. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157178.aspx for more information)

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDiskGetResponse> GetDiskAsync (string name, System.Threading.CancellationToken cancellationToken);
abstract member GetDiskAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDiskGetResponse>
Public Function GetDiskAsync (name As String, cancellationToken As CancellationToken) As Task(Of VirtualMachineDiskGetResponse)

Parameters

name
String

The name of the disk.

cancellationToken
CancellationToken

Cancellation token.

Returns

A virtual machine disk associated with your subscription.

Applies to