Compartilhar via


UserSessionResource.SendMessageAsync Método

Definição

Envie uma mensagem para um usuário.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage
  • Operação IdUserSessions_SendMessage
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)

Parâmetros

sendMessage
UserSessionMessage

O objeto que contém a mensagem inclui o título e o corpo da mensagem.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a