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

VirtualMachineRunCommandsOperationsExtensions.GetAsync 方法

定义

获取某个位置中订阅的特定运行命令。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.RunCommandDocument> GetAsync (this Microsoft.Azure.Management.Compute.IVirtualMachineRunCommandsOperations operations, string location, string commandId, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.Compute.IVirtualMachineRunCommandsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.RunCommandDocument>
<Extension()>
Public Function GetAsync (operations As IVirtualMachineRunCommandsOperations, location As String, commandId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RunCommandDocument)

参数

operations
IVirtualMachineRunCommandsOperations

此扩展方法的操作组。

location
String

查询运行命令的位置。

commandId
String

命令 ID。

cancellationToken
CancellationToken

取消标记。

返回

适用于