Sprache

MemoryScope.DeleteAsync(DialogContext, CancellationToken) Methode

Definition

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

public virtual System.Threading.Tasks.Task DeleteAsync(Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable 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: