DesktopVirtualizationExtensions.GetHostPoolAsync Método

Definição

Obter um pool de hosts.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
  • IdHostPools_Get de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DesktopVirtualization.HostPoolResource>> GetHostPoolAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string hostPoolName, System.Threading.CancellationToken cancellationToken = default);
static member GetHostPoolAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DesktopVirtualization.HostPoolResource>>
<Extension()>
Public Function GetHostPoolAsync (resourceGroupResource As ResourceGroupResource, hostPoolName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of HostPoolResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual o método será executado.

hostPoolName
String

O nome do pool de host dentro do grupo de recursos especificado.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

hostPoolName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

hostPoolName é nulo.

Aplica-se a