다음을 통해 공유


DateTimePrompt 생성자

정의

DateTimePrompt 클래스의 새 인스턴스를 초기화합니다.

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)

매개 변수

dialogId
String

이 프롬프트에 할당할 ID입니다.

validator
PromptValidator<IList<DateTimeResolution>>

선택 사항으로, PromptValidator<T> 이 프롬프트에 대한 추가적인 사용자 지정 유효성 검사가 포함된 입니다.

defaultLocale
String

선택 사항으로, 프롬프트의 언어별 동작을 결정하는 데 사용되는 기본 로캘입니다. 로캘은 언어 또는 언어 제품군을 나타내는 2, 3 또는 4개 문자의 ISO 639 코드입니다.

설명

dialogId 값은 프롬프트가 DialogSet 추가되는 또는 ComponentDialog 내에서 고유해야 합니다.

ActivityContextLocaleDialogContext지정하면 해당 로컬이 언어별 동작을 결정하는 데 사용되고, 그렇지 않으면 defaultLocale 이 사용됩니다. US-English 언어 또는 기본 로캘을 사용할 수 없거나 언어 또는 로캘이 지원되지 않는 경우 사용됩니다.

적용 대상