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

IVirtualMachineOperations.GetAsync 方法

定义

获取角色操作检索有关指定虚拟机的信息。 (有关详细信息,请参阅 http://msdn.microsoft.com/en-us/library/windowsazure/jj157193.aspx)

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineGetResponse> GetAsync(string serviceName, string deploymentName, string virtualMachineName, System.Threading.CancellationToken cancellationToken);
abstract member GetAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineGetResponse>
Public Function GetAsync (serviceName As String, deploymentName As String, virtualMachineName As String, cancellationToken As CancellationToken) As Task(Of VirtualMachineGetResponse)

参数

serviceName
String

服务的名称。

deploymentName
String

部署的名称。

virtualMachineName
String

虚拟机的名称。

cancellationToken
CancellationToken

取消标记。

返回

获取虚拟机操作响应。

适用于