NumberPrompt<T>(String, PromptValidator<T>, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.