Delen via


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

Definitie

Post een bericht dat naar de gebruiker moet worden verzonden, met behulp van eerdere berichten om een gesprekscontext tot stand te brengen.

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

Te gebruiken communicatiekanaal.

text
String

De berichttekst.

locale
String

De landinstelling van de tekst.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

Een taak die de postbewerking vertegenwoordigt.

Opmerkingen

Als de landinstellingsparameter niet is ingesteld, wordt de landinstelling van het binnenkomende bericht gebruikt voor het antwoord.

Van toepassing op