共用方式為


IVirtualMachineDiskOperations.GetDataDiskAsync Method

Definition

The Get Data Disk operation retrieves the specified data disk from a virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157180.aspx for more information)

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDataDiskGetResponse> GetDataDiskAsync (string serviceName, string deploymentName, string roleName, int logicalUnitNumber, System.Threading.CancellationToken cancellationToken);
abstract member GetDataDiskAsync : string * string * string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDataDiskGetResponse>
Public Function GetDataDiskAsync (serviceName As String, deploymentName As String, roleName As String, logicalUnitNumber As Integer, cancellationToken As CancellationToken) As Task(Of VirtualMachineDataDiskGetResponse)

Parameters

serviceName
String

The name of your service.

deploymentName
String

The name of the deployment.

roleName
String

The name of the role.

logicalUnitNumber
Int32

The logical unit number of the disk.

cancellationToken
CancellationToken

Cancellation token.

Returns

The Get Data Disk operation response.

Applies to