Partager via


DesktopVirtualizationExtensions.GetVirtualWorkspaceAsync Méthode

Définition

Obtenir un espace de travail.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
  • IdWorkspaces_Get d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceResource>> GetVirtualWorkspaceAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string workspaceName, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualWorkspaceAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceResource>>
<Extension()>
Public Function GetVirtualWorkspaceAsync (resourceGroupResource As ResourceGroupResource, workspaceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VirtualWorkspaceResource))

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

workspaceName
String

Nom de l’espace de travail.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

workspaceName est une chaîne vide et devait être non vide.

workspaceName a la valeur null.

S’applique à