Share via


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

Definition

Initializes a new instance of the Prompt<T> class. Called from constructors in derived classes to initialize the Prompt<T> class.

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

Parameters

dialogId
String

The ID to assign to this prompt.

validator
PromptValidator<T>

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