CommandDialog<T>.OnDefault<U> Method

Definition

Define the default action if no match.

public Microsoft.Bot.Builder.Dialogs.CommandDialog<T> OnDefault<U> (Microsoft.Bot.Builder.Dialogs.ResumeAfter<Microsoft.Bot.Connector.IMessageActivity> handler, Microsoft.Bot.Builder.Dialogs.ResumeAfter<U> resultHandler = default);
member this.OnDefault : Microsoft.Bot.Builder.Dialogs.ResumeAfter<Microsoft.Bot.Connector.IMessageActivity> * Microsoft.Bot.Builder.Dialogs.ResumeAfter<'U> -> Microsoft.Bot.Builder.Dialogs.CommandDialog<'T>
Public Function OnDefault(Of U) (handler As ResumeAfter(Of IMessageActivity), Optional resultHandler As ResumeAfter(Of U) = Nothing) As CommandDialog(Of T)

Type Parameters

U

Type of input to result handler.

Parameters

handler
ResumeAfter<IMessageActivity>

Handler to call if no match.

resultHandler
ResumeAfter<U>

Optional result handler to be called if handler is creating a chaild dialog.

Returns

A CommandDialog.

Applies to