WebexClientWrapper.CreateMessageWithAttachmentsAsync Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Tworzy komunikat z załącznikami.
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)
Parametry
- recipient
- String
PersonId, email lub roomId wiadomości.
- text
- String
Tekst wiadomości.
- attachments
- IList<Attachment>
Lista załączników dołączonych do wiadomości.
- messageType
- Thrzn41.WebexTeams.Version1.MessageTextType
Wpisz komunikat. Może to być tekst lub znaczniki markdown.
- target
- Thrzn41.WebexTeams.Version1.MessageTarget
Element docelowy komunikatu.
- cancellationToken
- CancellationToken
Token anulowania zadania.
Zwraca
Utworzony identyfikator wiadomości.