Share via


NumberPrompt<T>(String, PromptValidator<T>, String) Constructor

Definition

Initializes a new instance of the NumberPrompt<T> class.

public NumberPrompt (string dialogId, Microsoft.Bot.Builder.Dialogs.PromptValidator<T> validator = default, string defaultLocale = default);
new Microsoft.Bot.Builder.Dialogs.NumberPrompt<'T (requires 'T : struct)> : string * Microsoft.Bot.Builder.Dialogs.PromptValidator<'T (requires 'T : struct)> * string -> Microsoft.Bot.Builder.Dialogs.NumberPrompt<'T (requires 'T : struct)>
Public Sub New (dialogId As String, Optional validator As PromptValidator(Of T) = Nothing, Optional defaultLocale As String = Nothing)

Parameters

dialogId
String

Unique ID of the dialog within its parent DialogSet or ComponentDialog.

validator
PromptValidator<T>

Validator that will be called each time the user responds to the prompt.

defaultLocale
String

Locale to use.

Applies to