TextPrompt(String, PromptValidator<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 TextPrompt class.
public TextPrompt (string dialogId, Microsoft.Bot.Builder.Dialogs.PromptValidator<string> validator = default);
new Microsoft.Bot.Builder.Dialogs.TextPrompt : string * Microsoft.Bot.Builder.Dialogs.PromptValidator<string> -> Microsoft.Bot.Builder.Dialogs.TextPrompt
Public Sub New (dialogId As String, Optional validator As PromptValidator(Of String) = Nothing)
Parameters
- dialogId
- String
The ID to assign to this prompt.
- validator
- PromptValidator<String>
Optional, a PromptValidator<T> that contains additional, custom validation for this prompt.
Remarks
The value of dialogId
must be unique within the DialogSet or ComponentDialog to which the prompt is added.