Share via


UserSessionResource.DisconnectAsync(CancellationToken) Method

Definition

Disconnect a userSession.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/disconnect
  • Operation Id: UserSessions_Disconnect
  • Default Api Version: 2024-04-03
  • Resource: UserSessionResource
public virtual System.Threading.Tasks.Task<Azure.Response> DisconnectAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member DisconnectAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DisconnectAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DisconnectAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to