PromptDialog.Choice Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
| Name | Description |
|---|---|
| Choice<T>(IDialogContext, ResumeAfter<T>, IPromptOptions<T>, Boolean, Boolean, Boolean, Double) |
Vraag om een van een reeks keuzes. |
| Choice<T>(IDialogContext, ResumeAfter<T>, IEnumerable<T>, String, String, Int32, PromptStyle, IEnumerable<String>) |
Vraag om een van een reeks keuzes. |
| Choice<T>(IDialogContext, ResumeAfter<T>, IDictionary<T,IEnumerable<T>>, String, String, Int32, PromptStyle, IEnumerable<String>, Boolean, Boolean, Boolean, Double) |
Vraag om een van een reeks keuzes. |
Choice<T>(IDialogContext, ResumeAfter<T>, IPromptOptions<T>, Boolean, Boolean, Boolean, Double)
- Bron:
- PromptDialog.cs
Vraag om een van een reeks keuzes.
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 opties.
Parameters
- context
- IDialogContext
De context van de dialoog.
- resume
- ResumeAfter<T>
Cv-handler.
- promptOptions
- IPromptOptions<T>
De promptopties.
- recognizeChoices
- Boolean
(Optioneel) als het waar is, zal de prompt proberen de geselecteerde waarde te herkennen met behulp van de keuzes zelf. De standaardwaarde is "waar".
- recognizeNumbers
- Boolean
(Optioneel) als het waar is, zal de prompt proberen getallen in de uiting van de gebruiker te herkennen als de index van de keuze om terug te geven. De standaardwaarde is "waar".
- recognizeOrdinals
- Boolean
(Optioneel) als het waar is, zal de prompt proberen ordinaalgetallen zoals "de eerste" of "de tweede" te herkennen als de index van de keuze om terug te geven. De standaardwaarde is "waar".
- minScore
- Double
(Optioneel) minimumscore van 0,0 - 1,0 is nodig om een erkende keuze als match te laten gelden. 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 een reeks keuzes.
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 omgezet moeten kunnen worden in een string.
- prompt
- String
De prompt om aan de gebruiker te tonen.
- retry
- String
Wat je bij een herpoging moet laten zien.
- attempts
- Int32
Het aantal keren om opnieuw te proberen.
- promptStyle
- PromptStyle
Stijl van de prompt PromptStyle
- descriptions
- IEnumerable<String>
Beschrijvingen om keuzes te tonen.
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 een reeks keuzes.
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>>
Woordenboek met de opties om uit te kiezen als sleutel en hun synoniemen als waarde.
- prompt
- String
De prompt om aan de gebruiker te tonen.
- retry
- String
Wat je bij een herpoging moet laten zien.
- attempts
- Int32
Het aantal keren om opnieuw te proberen.
- promptStyle
- PromptStyle
Stijl van de prompt PromptStyle
- descriptions
- IEnumerable<String>
Beschrijvingen om keuzes te tonen.
- recognizeChoices
- Boolean
(Optioneel) als het waar is, zal de prompt proberen de geselecteerde waarde te herkennen met behulp van de keuzes zelf. De standaardwaarde is "waar".
- recognizeNumbers
- Boolean
(Optioneel) als het waar is, zal de prompt proberen getallen in de uiting van de gebruiker te herkennen als de index van de keuze om terug te geven. De standaardwaarde is "waar".
- recognizeOrdinals
- Boolean
(Optioneel) als het waar is, zal de prompt proberen ordinaalgetallen zoals "de eerste" of "de tweede" te herkennen als de index van de keuze om terug te geven. De standaardwaarde is "waar".
- minScore
- Double
(Optioneel) minimumscore van 0,0 - 1,0 is nodig om een erkende keuze als match te laten gelden. De standaardwaarde is "0,4".