Dialog.OnPreBubbleEventAsync Methode

Definition

Wird aufgerufen, bevor ein Ereignis mit seinem übergeordneten Element in die Blase eingeblasen wird.

protected virtual System.Threading.Tasks.Task<bool> OnPreBubbleEventAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dc, Microsoft.Bot.Builder.Dialogs.DialogEvent e, System.Threading.CancellationToken cancellationToken);
abstract member OnPreBubbleEventAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Builder.Dialogs.DialogEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.OnPreBubbleEventAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * Microsoft.Bot.Builder.Dialogs.DialogEvent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Protected Overridable Function OnPreBubbleEventAsync (dc As DialogContext, e As DialogEvent, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameter

dc
DialogContext

Der Dialogkontext für den aktuellen Unterhaltungswechsel.

e
DialogEvent

Das ausgelöste Ereignis.

cancellationToken
CancellationToken

Abbruchtoken.

Gibt zurück

Gibt an, ob das Ereignis vom aktuellen Dialogfeld behandelt wird und die weitere Verarbeitung beendet werden sollte.

Hinweise

Dies ist ein guter Ort für das Abfangen eines Ereignisses, da die Rückgabe von "true" verhindert, dass das Ereignis an die übergeordneten Dialoge weiter sprudelt und auch verhindert, dass untergeordnete Dialoge ihre Standardverarbeitung ausführen.

Gilt für: