Delen via


BotState.DeletePropertyValueAsync Methode

Definitie

Hiermee verwijdert u een eigenschap uit de statuscache voor deze 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

Parameters

turnContext
ITurnContext

Het contextobject voor deze beurt.

propertyName
String

De naam van de eigenschap.

cancellationToken
CancellationToken

Een annuleringstoken dat kan worden gebruikt door andere objecten of threads om een kennisgeving van annulering te ontvangen.

Retouren

Een taak die het werk vertegenwoordigt dat in de wachtrij staat om uit te voeren.

Uitzonderingen

turnContext of propertyName is null.

Van toepassing op