Dialog.ContinueDialogAsync(DialogContext, CancellationToken) Methode

Definition

Wird aufgerufen, wenn der Dialog fortgesetzt wird, wobei es sich um den aktiven Dialog handelt und der Benutzer mit einer neuen Aktivität antwortet.

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult> ContinueDialogAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, System.Threading.CancellationToken cancellationToken = default);
abstract member ContinueDialogAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
override this.ContinueDialogAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.DialogTurnResult>
Public Overridable Function ContinueDialogAsync (dc As DialogContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DialogTurnResult)

Parameter

dc
DialogContext

Die DialogContext für den aktuellen Unterhaltungswechsel.

cancellationToken
CancellationToken

Ein Abbruchtoken, das von anderen Objekten oder Threads verwendet werden kann, um Nachricht vom Abbruch zu empfangen.

Gibt zurück

Eine Task, die den asynchronen Vorgang darstellt

Hinweise

Wenn die Aufgabe erfolgreich ist, gibt das Ergebnis an, ob der Dialog nach der Verarbeitung durch den Dialog noch aktiv ist. Das Ergebnis kann auch einen Rückgabewert enthalten.

Wenn diese Methode *nicht* überschrieben wird, wird das Dialogfeld automatisch beendet, wenn der Benutzer antwortet.

Gilt für:

Weitere Informationen