Share via


RemoteRenderingClient.StopSessionAsync(String, CancellationToken) Method

Definition

Stops a particular rendering session.

public virtual System.Threading.Tasks.Task<Azure.Response> StopSessionAsync (string sessionId, System.Threading.CancellationToken cancellationToken = default);
abstract member StopSessionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.StopSessionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function StopSessionAsync (sessionId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

sessionId
String

ID of the session to stop.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

sessionId is null.

Applies to