Compartilhar via


IPromptRecognizer.RecognizeChoices<T> Método

Definição

Reconhecedor para um número.

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))

Parâmetros de tipo

T

Parâmetros

message
IMessageActivity

Contexto da mensagem.

choicesDictionary
IReadOnlyDictionary<T,IReadOnlyList<T>>

Dicionário com as opções a serem escolhidas como uma chave e seus sinônimos como um valor.

Retornos

Aplica-se a