Sdílet prostřednictvím


WebexClientWrapper.CreateMessageAsync Metoda

Definice

Zabalí metodu CreateMessageAsync rozhraní Webex API.

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)

Parametry

recipient
String

ID cíle zprávy.

text
String

Text zprávy.

files
IList<Uri>

Seznam souborů připojených ke zprávě

messageType
Thrzn41.WebexTeams.Version1.MessageTextType

Typ zprávy. Může to být Text nebo Markdown.

target
Thrzn41.WebexTeams.Version1.MessageTarget

Cíl zprávy.

cancellationToken
CancellationToken

Token zrušení pro úlohu.

Návraty

ID vytvořené zprávy.

Platí pro