TestAdapter.SendTextToBotAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Traite une activité de message provenant d’un utilisateur.
public virtual System.Threading.Tasks.Task SendTextToBotAsync(string userSays, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
abstract member SendTextToBotAsync : string * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SendTextToBotAsync : string * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SendTextToBotAsync (userSays As String, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task
Paramètres
- userSays
- String
Le texte du message de l’utilisateur.
- callback
- BotCallbackHandler
Le tour traite la logique à utiliser.
- cancellationToken
- CancellationToken
Jeton d’annulation.
Retours
Tâche qui représente le travail mis en file d’attente à exécuter.