Share via


TextPrompt(String, PromptValidator<String>) Constructor

Definition

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.

Applies to