PromptDialog.Choice メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
Choice<T>(IDialogContext, ResumeAfter<T>, IPromptOptions<T>, Boolean, Boolean, Boolean, Double)
- ソース:
- PromptDialog.cs
選択肢のどれかをプロンプトします。
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)
型パラメーター
- T
選択肢の種類。
パラメーター
- context
- IDialogContext
ダイアログ コンテキスト。
- resume
- ResumeAfter<T>
履歴書担当者。
- promptOptions
- IPromptOptions<T>
プロンプトの選択肢。
- recognizeChoices
- Boolean
(省略可能) true の場合、プロンプトは選択肢自体を使用して選択した値の認識を試みます。 既定値は "true" です。
- recognizeNumbers
- Boolean
(省略可能) true の場合、プロンプトはユーザー発話内の数値を返す選択のインデックスとして認識しようとします。 既定値は "true" です。
- recognizeOrdinals
- Boolean
(省略可能) true の場合、プロンプトは、"最初の 1 つ" や "2 番目の 1 つ" などの序数を返す選択のインデックスとして認識しようとします。 既定値は "true" です。
- minScore
- Double
(省略可能) 認識された選択が一致と見なされるために必要な 0.0 から 1.0 までの最小スコア。 既定値は "0.4" です。
注釈
T 実装すべきです ToString()
適用対象
Choice<T>(IDialogContext, ResumeAfter<T>, IEnumerable<T>, String, String, Int32, PromptStyle, IEnumerable<String>)
- ソース:
- PromptDialog.cs
選択肢のどれかをプロンプトします。
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)
型パラメーター
- T
パラメーター
- context
- IDialogContext
コンテキスト。
- resume
- ResumeAfter<T>
履歴書担当者。
- options
- IEnumerable<T>
可能なオプションはすべて文字列に変換可能でなければなりません。
- prompt
- String
ユーザーに表示するプロンプト。
- retry
- String
再試行時に何を表示するか。
- attempts
- Int32
再挑戦する回数。
- promptStyle
- PromptStyle
プロンプトのスタイル PromptStyle
- descriptions
- IEnumerable<String>
選択肢のための説明が表示されます。
適用対象
Choice<T>(IDialogContext, ResumeAfter<T>, IDictionary<T,IEnumerable<T>>, String, String, Int32, PromptStyle, IEnumerable<String>, Boolean, Boolean, Boolean, Double)
- ソース:
- PromptDialog.cs
選択肢のどれかをプロンプトします。
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)
型パラメーター
- T
パラメーター
- context
- IDialogContext
コンテキスト。
- resume
- ResumeAfter<T>
履歴書担当者。
- choices
- IDictionary<T,IEnumerable<T>>
選べる選択肢をキーとして、それらの同義語を値として使う辞書。
- prompt
- String
ユーザーに表示するプロンプト。
- retry
- String
再試行時に何を表示するか。
- attempts
- Int32
再挑戦する回数。
- promptStyle
- PromptStyle
プロンプトのスタイル PromptStyle
- descriptions
- IEnumerable<String>
選択肢のための説明が表示されます。
- recognizeChoices
- Boolean
(省略可能) true の場合、プロンプトは選択肢自体を使用して選択した値の認識を試みます。 既定値は "true" です。
- recognizeNumbers
- Boolean
(省略可能) true の場合、プロンプトはユーザー発話内の数値を返す選択のインデックスとして認識しようとします。 既定値は "true" です。
- recognizeOrdinals
- Boolean
(省略可能) true の場合、プロンプトは、"最初の 1 つ" や "2 番目の 1 つ" などの序数を返す選択のインデックスとして認識しようとします。 既定値は "true" です。
- minScore
- Double
(省略可能) 認識された選択が一致と見なされるために必要な 0.0 から 1.0 までの最小スコア。 既定値は "0.4" です。