Partager via


UserSessionResource.SendMessageAsync Méthode

Définition

Envoyer un message à un utilisateur.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage
  • IdUserSessions_SendMessage d’opération
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)

Paramètres

sendMessage
UserSessionMessage

L’objet contenant le message inclut le titre et le corps du message.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

S’applique à