Delen via


PromptDialog.Choice Methode

Definitie

Overloads

Choice<T>(IDialogContext, ResumeAfter<T>, IPromptOptions<T>, Boolean, Boolean, Boolean, Double)

Vraag om een van de opties.

Choice<T>(IDialogContext, ResumeAfter<T>, IEnumerable<T>, String, String, Int32, PromptStyle, IEnumerable<String>)

Vraag om een van de opties.

Choice<T>(IDialogContext, ResumeAfter<T>, IDictionary<T,IEnumerable<T>>, String, String, Int32, PromptStyle, IEnumerable<String>, Boolean, Boolean, Boolean, Double)

Vraag om een van de opties.

Choice<T>(IDialogContext, ResumeAfter<T>, IPromptOptions<T>, Boolean, Boolean, Boolean, Double)

Bron:
PromptDialog.cs

Vraag om een van de opties.

public static void Choice<T>(Microsoft.Bot.Builder.Dialogs.IDialogContext context, Microsoft.Bot.Builder.Dialogs.ResumeAfter<T> resume, Microsoft.Bot.Builder.Dialogs.IPromptOptions<T> promptOptions, bool recognizeChoices = true, bool recognizeNumbers = true, bool recognizeOrdinals = true, double minScore = 0.4);
static member Choice : Microsoft.Bot.Builder.Dialogs.IDialogContext * Microsoft.Bot.Builder.Dialogs.ResumeAfter<'T> * Microsoft.Bot.Builder.Dialogs.IPromptOptions<'T> * bool * bool * bool * double -> unit
Public Shared Sub Choice(Of T) (context As IDialogContext, resume As ResumeAfter(Of T), promptOptions As IPromptOptions(Of T), Optional recognizeChoices As Boolean = true, Optional recognizeNumbers As Boolean = true, Optional recognizeOrdinals As Boolean = true, Optional minScore As Double = 0.4)

Type parameters

T

Het type van de opties.

Parameters

context
IDialogContext

De context van het dialoogvenster.

resume
ResumeAfter<T>

Cv-handler.

promptOptions
IPromptOptions<T>

De promptopties.

recognizeChoices
Boolean

(Optioneel) indien waar, probeert de prompt de geselecteerde waarde te herkennen met behulp van de keuzes zelf. De standaardwaarde is 'true'.

recognizeNumbers
Boolean

(Optioneel) indien waar, zal de prompt proberen getallen in de uiting van de gebruiker te herkennen als de index van de keuze die moet worden geretourneerd. De standaardwaarde is 'true'.

recognizeOrdinals
Boolean

(Optioneel) Als dit waar is, probeert de prompt ordinalen zoals 'de eerste' of 'de tweede' te herkennen als de index van de keuze om te retourneren. De standaardwaarde is 'true'.

minScore
Double

(Optioneel) minimale score van 0,0 - 1,0 die nodig is om een herkende keuze als een overeenkomst te kunnen beschouwen. De standaardwaarde is '0,4'.

Opmerkingen

T moet implementeren ToString()

Van toepassing op

Choice<T>(IDialogContext, ResumeAfter<T>, IEnumerable<T>, String, String, Int32, PromptStyle, IEnumerable<String>)

Bron:
PromptDialog.cs

Vraag om een van de opties.

public static void Choice<T>(Microsoft.Bot.Builder.Dialogs.IDialogContext context, Microsoft.Bot.Builder.Dialogs.ResumeAfter<T> resume, System.Collections.Generic.IEnumerable<T> options, string prompt, string retry = default, int attempts = 3, Microsoft.Bot.Builder.Dialogs.PromptStyle promptStyle = Microsoft.Bot.Builder.Dialogs.PromptStyle.Auto, System.Collections.Generic.IEnumerable<string> descriptions = default);
static member Choice : Microsoft.Bot.Builder.Dialogs.IDialogContext * Microsoft.Bot.Builder.Dialogs.ResumeAfter<'T> * seq<'T> * string * string * int * Microsoft.Bot.Builder.Dialogs.PromptStyle * seq<string> -> unit
Public Shared Sub Choice(Of T) (context As IDialogContext, resume As ResumeAfter(Of T), options As IEnumerable(Of T), prompt As String, Optional retry As String = Nothing, Optional attempts As Integer = 3, Optional promptStyle As PromptStyle = Microsoft.Bot.Builder.Dialogs.PromptStyle.Auto, Optional descriptions As IEnumerable(Of String) = Nothing)

Type parameters

T

Parameters

context
IDialogContext

De context.

resume
ResumeAfter<T>

Cv-handler.

options
IEnumerable<T>

De mogelijke opties die allemaal moeten worden omgezet in een tekenreeks.

prompt
String

De prompt om weer te geven aan de gebruiker.

retry
String

Wat moet worden weergegeven als u het opnieuw probeert.

attempts
Int32

Het aantal keren dat u het opnieuw wilt proberen.

promptStyle
PromptStyle

Stijl van de prompt PromptStyle

descriptions
IEnumerable<String>

Beschrijvingen die moeten worden weergegeven voor keuzes.

Van toepassing op

Choice<T>(IDialogContext, ResumeAfter<T>, IDictionary<T,IEnumerable<T>>, String, String, Int32, PromptStyle, IEnumerable<String>, Boolean, Boolean, Boolean, Double)

Bron:
PromptDialog.cs

Vraag om een van de opties.

public static void Choice<T>(Microsoft.Bot.Builder.Dialogs.IDialogContext context, Microsoft.Bot.Builder.Dialogs.ResumeAfter<T> resume, System.Collections.Generic.IDictionary<T,System.Collections.Generic.IEnumerable<T>> choices, string prompt, string retry = default, int attempts = 3, Microsoft.Bot.Builder.Dialogs.PromptStyle promptStyle = Microsoft.Bot.Builder.Dialogs.PromptStyle.Auto, System.Collections.Generic.IEnumerable<string> descriptions = default, bool recognizeChoices = true, bool recognizeNumbers = true, bool recognizeOrdinals = true, double minScore = 0.4);
static member Choice : Microsoft.Bot.Builder.Dialogs.IDialogContext * Microsoft.Bot.Builder.Dialogs.ResumeAfter<'T> * System.Collections.Generic.IDictionary<'T, seq<'T>> * string * string * int * Microsoft.Bot.Builder.Dialogs.PromptStyle * seq<string> * bool * bool * bool * double -> unit
Public Shared Sub Choice(Of T) (context As IDialogContext, resume As ResumeAfter(Of T), choices As IDictionary(Of T, IEnumerable(Of T)), prompt As String, Optional retry As String = Nothing, Optional attempts As Integer = 3, Optional promptStyle As PromptStyle = Microsoft.Bot.Builder.Dialogs.PromptStyle.Auto, Optional descriptions As IEnumerable(Of String) = Nothing, Optional recognizeChoices As Boolean = true, Optional recognizeNumbers As Boolean = true, Optional recognizeOrdinals As Boolean = true, Optional minScore As Double = 0.4)

Type parameters

T

Parameters

context
IDialogContext

De context.

resume
ResumeAfter<T>

Cv-handler.

choices
IDictionary<T,IEnumerable<T>>

Woordenlijst met de opties waaruit u kunt kiezen als sleutel en hun synoniemen als een waarde.

prompt
String

De prompt om weer te geven aan de gebruiker.

retry
String

Wat moet worden weergegeven als u het opnieuw probeert.

attempts
Int32

Het aantal keren dat u het opnieuw wilt proberen.

promptStyle
PromptStyle

Stijl van de prompt PromptStyle

descriptions
IEnumerable<String>

Beschrijvingen die moeten worden weergegeven voor keuzes.

recognizeChoices
Boolean

(Optioneel) indien waar, probeert de prompt de geselecteerde waarde te herkennen met behulp van de keuzes zelf. De standaardwaarde is 'true'.

recognizeNumbers
Boolean

(Optioneel) indien waar, zal de prompt proberen getallen in de uiting van de gebruiker te herkennen als de index van de keuze die moet worden geretourneerd. De standaardwaarde is 'true'.

recognizeOrdinals
Boolean

(Optioneel) Als dit waar is, probeert de prompt ordinalen zoals 'de eerste' of 'de tweede' te herkennen als de index van de keuze om te retourneren. De standaardwaarde is 'true'.

minScore
Double

(Optioneel) minimale score van 0,0 - 1,0 die nodig is om een herkende keuze als een overeenkomst te kunnen beschouwen. De standaardwaarde is '0,4'.

Van toepassing op