WebexClientWrapper.CreateMessageWithAttachmentsAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée un message avec des pièces jointes.
public virtual System.Threading.Tasks.Task<string> CreateMessageWithAttachmentsAsync(string recipient, string text, System.Collections.Generic.IList<Microsoft.Bot.Schema.Attachment> attachments, Thrzn41.WebexTeams.Version1.MessageTextType messageType = Thrzn41.WebexTeams.Version1.MessageTextType.Text, Thrzn41.WebexTeams.Version1.MessageTarget target = Thrzn41.WebexTeams.Version1.MessageTarget.PersonId, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateMessageWithAttachmentsAsync : string * string * System.Collections.Generic.IList<Microsoft.Bot.Schema.Attachment> * Thrzn41.WebexTeams.Version1.MessageTextType * Thrzn41.WebexTeams.Version1.MessageTarget * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.CreateMessageWithAttachmentsAsync : string * string * System.Collections.Generic.IList<Microsoft.Bot.Schema.Attachment> * Thrzn41.WebexTeams.Version1.MessageTextType * Thrzn41.WebexTeams.Version1.MessageTarget * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function CreateMessageWithAttachmentsAsync (recipient As String, text As String, attachments As IList(Of Attachment), Optional messageType As MessageTextType = Thrzn41.WebexTeams.Version1.MessageTextType.Text, Optional target As MessageTarget = Thrzn41.WebexTeams.Version1.MessageTarget.PersonId, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)
Paramètres
- recipient
- String
PersonId, email ou roomId du message.
- text
- String
Texte du message.
- attachments
- IList<Attachment>
Liste des pièces jointes au message.
- messageType
- Thrzn41.WebexTeams.Version1.MessageTextType
Type du message. Il peut s’agir de Texte ou Markdown.
- target
- Thrzn41.WebexTeams.Version1.MessageTarget
Cible pour le message.
- cancellationToken
- CancellationToken
Jeton d’annulation pour la tâche.
Retours
ID de message créé.