Compartilhar via


HostPoolCollection.GetAsync(String, CancellationToken) 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 virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DesktopVirtualization.HostPoolResource>> GetAsync (string hostPoolName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DesktopVirtualization.HostPoolResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DesktopVirtualization.HostPoolResource>>
Public Overridable Function GetAsync (hostPoolName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of HostPoolResource))

Parâmetros

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