IPromptRecognizer.RecognizeChoices<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Recognizer for a number.
public System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Dialogs.RecognizeEntity<T>> RecognizeChoices<T> (Microsoft.Bot.Connector.IMessageActivity message, System.Collections.Generic.IReadOnlyDictionary<T,System.Collections.Generic.IReadOnlyList<T>> choicesDictionary, Microsoft.Bot.Builder.Dialogs.IPromptRecognizeChoicesOptions options = default);
abstract member RecognizeChoices : Microsoft.Bot.Connector.IMessageActivity * System.Collections.Generic.IReadOnlyDictionary<'T, System.Collections.Generic.IReadOnlyList<'T>> * Microsoft.Bot.Builder.Dialogs.IPromptRecognizeChoicesOptions -> seq<Microsoft.Bot.Builder.Dialogs.RecognizeEntity<'T>>
Public Function RecognizeChoices(Of T) (message As IMessageActivity, choicesDictionary As IReadOnlyDictionary(Of T, IReadOnlyList(Of T)), Optional options As IPromptRecognizeChoicesOptions = Nothing) As IEnumerable(Of RecognizeEntity(Of T))
Type Parameters
- T
Parameters
- message
- IMessageActivity
Message context.
- choicesDictionary
- IReadOnlyDictionary<T,IReadOnlyList<T>>
Dictionary with the options to choose from as a key and their synonyms as a value.
- options
- IPromptRecognizeChoicesOptions
Options of the Recognizer. IPromptRecognizeChoicesOptions