Compartir a través de


WebexClientWrapper.CreateMessageWithAttachmentsAsync Método

Definición

Crea un mensaje con datos adjuntos.

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)

Parámetros

recipient
String

PersonId, email o roomId del mensaje.

text
String

Texto del mensaje.

attachments
IList<Attachment>

Lista de datos adjuntos adjuntos al mensaje.

messageType
Thrzn41.WebexTeams.Version1.MessageTextType

Tipo del mensaje. Puede ser Text o Markdown.

target
Thrzn41.WebexTeams.Version1.MessageTarget

Destino del mensaje.

cancellationToken
CancellationToken

Un token de cancelación para la tarea.

Devoluciones

Identificador del mensaje creado.

Se aplica a