Condividi tramite


WebexClientWrapper.CreateMessageWithAttachmentsAsync Metodo

Definizione

Crea un messaggio con allegati.

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)

Parametri

recipient
String

PersonId, email o roomId del messaggio.

text
String

Testo del messaggio.

attachments
IList<Attachment>

Elenco di allegati collegati al messaggio.

messageType
Thrzn41.WebexTeams.Version1.MessageTextType

Tipo del messaggio. Può essere Text o Markdown.

target
Thrzn41.WebexTeams.Version1.MessageTarget

Destinazione per il messaggio.

cancellationToken
CancellationToken

Token di annullamento per l'attività.

Restituisce

ID messaggio creato.

Si applica a