Język

BotState.DeletePropertyValueAsync Metoda

Definicja

Usuwa właściwość z pamięci podręcznej stanu dla tego BotState.

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

Parametry

turnContext
ITurnContext

Obiekt kontekstu dla tego kolei.

propertyName
String

Nazwa właściwości.

cancellationToken
CancellationToken

Token anulowania, który może być używany przez inne obiekty lub wątki do otrzymywania powiadomienia o anulowaniu.

Zwraca

Zadanie reprezentujące pracę w kolejce do wykonania.

Wyjątki

turnContext lub propertyName ma wartość null.

Dotyczy