Compartir a través de


WebexClientWrapper.CreateMessageAsync Método

Definición

Ajusta el método CreateMessageAsync de la API de Webex.

public virtual System.Threading.Tasks.Task<string> CreateMessageAsync (string recipient, string text, System.Collections.Generic.IList<Uri> files = default, 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 CreateMessageAsync : string * string * System.Collections.Generic.IList<Uri> * Thrzn41.WebexTeams.Version1.MessageTextType * Thrzn41.WebexTeams.Version1.MessageTarget * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.CreateMessageAsync : string * string * System.Collections.Generic.IList<Uri> * Thrzn41.WebexTeams.Version1.MessageTextType * Thrzn41.WebexTeams.Version1.MessageTarget * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function CreateMessageAsync (recipient As String, text As String, Optional files As IList(Of Uri) = Nothing, 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

Identificador de destino del mensaje.

text
String

Texto del mensaje.

files
IList<Uri>

Lista de archivos adjuntos al mensaje.

messageType
Thrzn41.WebexTeams.Version1.MessageTextType

Tipo de 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