Delen via


ChoicePrompt Constructors

Definitie

Overloads

ChoicePrompt(String, PromptValidator<FoundChoice>, String)

Initialiseert een nieuw exemplaar van de ChoicePrompt klasse.

ChoicePrompt(String, Dictionary<String,ChoiceFactoryOptions>, PromptValidator<FoundChoice>, String)

Initialiseert een nieuw exemplaar van de ChoicePrompt klasse.

ChoicePrompt(String, PromptValidator<FoundChoice>, String)

Initialiseert een nieuw exemplaar van de ChoicePrompt klasse.

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

Parameters

dialogId
String

De id die aan deze prompt moet worden toegewezen.

validator
PromptValidator<FoundChoice>

Optioneel, een PromptValidator<T> met aanvullende, aangepaste validatie voor deze prompt.

defaultLocale
String

Optioneel, de standaardlandinstelling die wordt gebruikt om taalspecifiek gedrag van de prompt te bepalen. De landinstelling is een ISO 639-code van 2, 3 of 4 tekens die een taal of taalfamilie vertegenwoordigt.

Opmerkingen

De waarde van dialogId moet uniek zijn binnen de DialogSet of ComponentDialog waaraan de prompt wordt toegevoegd.

Als de Locale van .DialogContextContext.Activity is opgegeven, wordt dat lokale gebruikt om taalspecifiek gedrag te bepalen; anders wordt de defaultLocale gebruikt. US-English wordt gebruikt als er geen taal of standaardlandinstelling beschikbaar is, of als de taal of landinstelling niet anderszins wordt ondersteund.

Van toepassing op

ChoicePrompt(String, Dictionary<String,ChoiceFactoryOptions>, PromptValidator<FoundChoice>, String)

Initialiseert een nieuw exemplaar van de ChoicePrompt klasse.

public ChoicePrompt (string dialogId, System.Collections.Generic.Dictionary<string,Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions> choiceDefaults, Microsoft.Bot.Builder.Dialogs.PromptValidator<Microsoft.Bot.Builder.Dialogs.Choices.FoundChoice> validator = default, string defaultLocale = default);
new Microsoft.Bot.Builder.Dialogs.ChoicePrompt : string * System.Collections.Generic.Dictionary<string, Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions> * Microsoft.Bot.Builder.Dialogs.PromptValidator<Microsoft.Bot.Builder.Dialogs.Choices.FoundChoice> * string -> Microsoft.Bot.Builder.Dialogs.ChoicePrompt
Public Sub New (dialogId As String, choiceDefaults As Dictionary(Of String, ChoiceFactoryOptions), Optional validator As PromptValidator(Of FoundChoice) = Nothing, Optional defaultLocale As String = Nothing)

Parameters

dialogId
String

De id die aan deze prompt moet worden toegewezen.

choiceDefaults
Dictionary<String,ChoiceFactoryOptions>

Overschrijft de woordenlijst van bot framework SDK-ondersteunde _choiceDefaults (voor prompt lokalisatie). Moet worden doorgegeven aan elke ConfirmPrompt die de standaardinstellingen voor aangepaste keuze nodig heeft.

validator
PromptValidator<FoundChoice>

Optioneel, een PromptValidator<T> met aanvullende, aangepaste validatie voor deze prompt.

defaultLocale
String

Optioneel, de standaardlandinstelling die wordt gebruikt om taalspecifiek gedrag van de prompt te bepalen. De landinstelling is een ISO 639-code van 2, 3 of 4 tekens die een taal of taalfamilie vertegenwoordigt.

Opmerkingen

De waarde van dialogId moet uniek zijn binnen de DialogSet of ComponentDialog waaraan de prompt wordt toegevoegd.

Als de Locale van .DialogContextContext.Activity is opgegeven, wordt dat lokale gebruikt om taalspecifiek gedrag te bepalen; anders wordt de defaultLocale gebruikt. US-English wordt gebruikt als er geen taal of standaardlandinstelling beschikbaar is, of als de taal of landinstelling niet anderszins wordt ondersteund.

Van toepassing op