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

DedicatedHostsOperationsExtensions.GetAsync 方法

定义

检索有关专用主机的信息。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.DedicatedHostInner> GetAsync (this Microsoft.Azure.Management.Compute.Fluent.IDedicatedHostsOperations operations, string resourceGroupName, string hostGroupName, string hostName, Microsoft.Azure.Management.Compute.Fluent.Models.InstanceViewTypes? expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.Compute.Fluent.IDedicatedHostsOperations * string * string * string * Nullable<Microsoft.Azure.Management.Compute.Fluent.Models.InstanceViewTypes> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Fluent.Models.DedicatedHostInner>
<Extension()>
Public Function GetAsync (operations As IDedicatedHostsOperations, resourceGroupName As String, hostGroupName As String, hostName As String, Optional expand As Nullable(Of InstanceViewTypes) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DedicatedHostInner)

参数

operations
IDedicatedHostsOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。

hostGroupName
String

专用主机组的名称。

hostName
String

专用主机的名称。

expand
Nullable<InstanceViewTypes>

要应用于操作的 expand 表达式。 可能的值包括:“instanceView”

cancellationToken
CancellationToken

取消标记。

返回

适用于