Taal

IPostToBot.PostAsync(IActivity, CancellationToken) Methode

Definitie

Plaats een item (bijvoorbeeld een bericht of een ander extern evenement) 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 postoperatie vertegenwoordigt.

Van toepassing op