Freigeben über


HostPoolCollection.GetIfExists(String, CancellationToken) Methode

Definition

Versucht, Details für diese Ressource vom Dienst abzurufen.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
  • Vorgangs-IdHostPools_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.HostPoolResource> GetIfExists (string hostPoolName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.HostPoolResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.HostPoolResource>
Public Overridable Function GetIfExists (hostPoolName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of HostPoolResource)

Parameter

hostPoolName
String

Der Name des Hostpools innerhalb der angegebenen Ressourcengruppe.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

hostPoolName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

hostPoolName ist NULL.

Gilt für: