다음을 통해 공유


UserSessionResource.SendMessageAsync 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 System.Threading.Tasks.Task<Azure.Response> SendMessageAsync (Azure.ResourceManager.DesktopVirtualization.Models.UserSessionMessage sendMessage = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SendMessageAsync : Azure.ResourceManager.DesktopVirtualization.Models.UserSessionMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.SendMessageAsync : Azure.ResourceManager.DesktopVirtualization.Models.UserSessionMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SendMessageAsync (Optional sendMessage As UserSessionMessage = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

sendMessage
UserSessionMessage

Object containing message includes title and message body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to