Sprache

BotStateMemoryScope<T>.DeleteAsync Methode

Definition

Löscht jeglichen Zustand im Speicher und den Cache dafür BotState.

public override System.Threading.Tasks.Task DeleteAsync(Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, System.Threading.CancellationToken cancellationToken = default);
override this.DeleteAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function DeleteAsync (dialogContext As DialogContext, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameter

dialogContext
DialogContext

Das Dialogkontextobjekt für diese Drehung.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um eine Kündigungsbenachrichtigung zu erhalten.

Gibt zurück

Eine Aufgabe, die die auszuführende Arbeitswarteschlange darstellt.

Gilt für: