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

IVirtualMachineOperations.BeginDeletingAsync 方法

定义

“开始删除角色”操作将删除指定的虚拟机。 (有关详细信息,请参阅 http://msdn.microsoft.com/en-us/library/windowsazure/jj157184.aspx)

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

参数

serviceName
String

服务的名称。

deploymentName
String

部署的名称。

virtualMachineName
String

要删除的虚拟机的名称。

deleteFromStorage
Boolean

指定还应从存储中删除虚拟机的源 blob () 。

cancellationToken
CancellationToken

取消标记。

返回

Task<Microsoft.Azure.AzureOperationResponse>

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

适用于