BotState.DeletePropertyValueAsync 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.
Supprime une propriété du cache d’état pour ce BotStatefichier .
protected System.Threading.Tasks.Task DeletePropertyValueAsync(Microsoft.Bot.Builder.ITurnContext turnContext, string propertyName, System.Threading.CancellationToken cancellationToken = default);
member this.DeletePropertyValueAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Function DeletePropertyValueAsync (turnContext As ITurnContext, propertyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Paramètres
- turnContext
- ITurnContext
Objet de contexte pour ce tour.
- propertyName
- String
Nom de la propriété.
- cancellationToken
- CancellationToken
Jeton d’annulation qui peut être utilisé par d’autres objets ou threads pour recevoir une notification d’annulation.
Retours
Tâche qui représente le travail mis en file d’attente à exécuter.
Exceptions
turnContext ou propertyName est null.