Taal

Extensions.PostAsync(IBotToUser, String, String, CancellationToken) Methode

Definitie

Plaats een bericht dat naar de gebruiker wordt gestuurd, waarbij eerdere berichten worden gebruikt om de context van het gesprek te creëren.

public static System.Threading.Tasks.Task PostAsync(this Microsoft.Bot.Builder.Dialogs.Internals.IBotToUser botToUser, string text, string locale = default, System.Threading.CancellationToken cancellationToken = default);
static member PostAsync : Microsoft.Bot.Builder.Dialogs.Internals.IBotToUser * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function PostAsync (botToUser As IBotToUser, text As String, Optional locale As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

botToUser
IBotToUser

Communicatiekanaal om te gebruiken.

text
String

De berichttekst.

locale
String

De locatie van de tekst.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

Een taak die de postoperatie vertegenwoordigt.

Opmerkingen

Als de locale-parameter niet is ingesteld, wordt de locale van het binnenkomende bericht gebruikt voor het antwoord.

Van toepassing op