ActivityPrompt(String, PromptValidator<Activity>) 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 ActivityPrompt class. Called from constructors in derived classes to initialize the ActivityPrompt class.
public ActivityPrompt (string dialogId, Microsoft.Bot.Builder.Dialogs.PromptValidator<Microsoft.Bot.Schema.Activity> validator);
new Microsoft.Bot.Builder.Dialogs.ActivityPrompt : string * Microsoft.Bot.Builder.Dialogs.PromptValidator<Microsoft.Bot.Schema.Activity> -> Microsoft.Bot.Builder.Dialogs.ActivityPrompt
Public Sub New (dialogId As String, validator As PromptValidator(Of Activity))
Parameters
- dialogId
- String
The ID to assign to this prompt.
- validator
- PromptValidator<Activity>
A PromptValidator<T> that contains validation for this prompt.
Remarks
The value of dialogId
must be unique within the DialogSet or ComponentDialog to which the prompt is added.