Compartir a través de


VirtualWorkspaceCollection.GetIfExists(String, CancellationToken) Método

Definición

Intenta obtener detalles de este recurso del servicio.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}
  • IdWorkspaces_Get de operaciones
public virtual Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceResource> GetIfExists (string workspaceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceResource>
Public Overridable Function GetIfExists (workspaceName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of VirtualWorkspaceResource)

Parámetros

workspaceName
String

El nombre del área de trabajo.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

workspaceName es una cadena vacía y se espera que no esté vacía.

workspaceName es null.

Se aplica a