你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IVirtualMachineDiskOperations.BeginDeletingDataDiskAsync 方法

定义

“开始删除数据磁盘”操作会从虚拟机中删除指定的数据磁盘。 (有关详细信息,请参阅 http://msdn.microsoft.com/en-us/library/windowsazure/jj157179.aspx)

public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> BeginDeletingDataDiskAsync (string serviceName, string deploymentName, string roleName, int logicalUnitNumber, bool deleteFromStorage, System.Threading.CancellationToken cancellationToken);
abstract member BeginDeletingDataDiskAsync : string * string * string * int * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function BeginDeletingDataDiskAsync (serviceName As String, deploymentName As String, roleName As String, logicalUnitNumber As Integer, deleteFromStorage As Boolean, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)

参数

serviceName
String

服务的名称。

deploymentName
String

部署的名称。

roleName
String

要从中删除数据磁盘的角色的名称。

logicalUnitNumber
Int32

磁盘的逻辑单元号。

deleteFromStorage
Boolean

指定还应从存储中删除的磁盘的源 blob。

cancellationToken
CancellationToken

取消标记。

返回

Task<Microsoft.Azure.AzureOperationResponse>

标准服务响应,包括 HTTP 状态代码和请求 ID。

适用于