Condividi tramite


WebexClientWrapper.CreateMessageAsync Metodo

Definizione

Esegue il wrapping del metodo CreateMessageAsync dell'API 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)

Parametri

recipient
String

ID di destinazione del messaggio.

text
String

Testo del messaggio.

files
IList<Uri>

Elenco di file collegati al messaggio.

messageType
Thrzn41.WebexTeams.Version1.MessageTextType

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