Delen via


IPostToBot.PostAsync(IActivity, CancellationToken) Methode

Definitie

Post een item (bijvoorbeeld een bericht of een andere externe gebeurtenis) naar de bot.

public System.Threading.Tasks.Task PostAsync(Microsoft.Bot.Connector.IActivity activity, System.Threading.CancellationToken token);
abstract member PostAsync : Microsoft.Bot.Connector.IActivity * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function PostAsync (activity As IActivity, token As CancellationToken) As Task

Parameters

activity
IActivity

Het item voor de bot.

token
CancellationToken

Het annuleringstoken.

Retouren

Een taak die de postbewerking vertegenwoordigt.

Van toepassing op