Aracılığıyla paylaş


UserSessionResource.SendMessage(UserSessionMessage, CancellationToken) Method

Definition

Send a message to a user.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage
  • Operation Id: UserSessions_SendMessage
  • Default Api Version: 2024-04-03
  • Resource: UserSessionResource
public virtual Azure.Response SendMessage (Azure.ResourceManager.DesktopVirtualization.Models.UserSessionMessage sendMessage = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SendMessage : Azure.ResourceManager.DesktopVirtualization.Models.UserSessionMessage * System.Threading.CancellationToken -> Azure.Response
override this.SendMessage : Azure.ResourceManager.DesktopVirtualization.Models.UserSessionMessage * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function SendMessage (Optional sendMessage As UserSessionMessage = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

sendMessage
UserSessionMessage

Object containing message includes title and message body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to