DateTimePrompt 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 DateTimePrompt class.
public DateTimePrompt (string dialogId, Microsoft.Bot.Builder.Dialogs.PromptValidator<System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.DateTimeResolution>> validator = default, string defaultLocale = default);
new Microsoft.Bot.Builder.Dialogs.DateTimePrompt : string * Microsoft.Bot.Builder.Dialogs.PromptValidator<System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.DateTimeResolution>> * string -> Microsoft.Bot.Builder.Dialogs.DateTimePrompt
Public Sub New (dialogId As String, Optional validator As PromptValidator(Of IList(Of DateTimeResolution)) = Nothing, Optional defaultLocale As String = Nothing)
Parameters
- dialogId
- String
The ID to assign to this prompt.
- validator
- PromptValidator<IList<DateTimeResolution>>
Optional, a PromptValidator<T> that contains additional, custom validation for this prompt.
- defaultLocale
- String
Optional, the default locale used to determine language-specific behavior of the prompt. The locale is a 2, 3, or 4 character ISO 639 code that represents a language or language family.
Remarks
The value of dialogId
must be unique within the DialogSet or ComponentDialog to which the prompt is added.
If the Locale of the DialogContext.Context.Activity is specified, then that local is used to determine language specific behavior; otherwise the defaultLocale
is used. US-English is the used if no language or default locale is available, or if the language or locale is not otherwise supported.