Lingua

ActivityPrompt.OnPromptAsync Metodo

Definizione

Overload

Nome Descrizione
OnPromptAsync(ITurnContext, IDictionary<String,Object>, PromptOptions, CancellationToken)

Quando sottoposto a override in una classe derivata, richiede all'utente di immettere l'input.

OnPromptAsync(ITurnContext, IDictionary<String,Object>, PromptOptions, Boolean, CancellationToken)

Quando sottoposto a override in una classe derivata, richiede all'utente di immettere l'input.

OnPromptAsync(ITurnContext, IDictionary<String,Object>, PromptOptions, CancellationToken)

Quando sottoposto a override in una classe derivata, richiede all'utente di immettere l'input.

protected virtual System.Threading.Tasks.Task OnPromptAsync(Microsoft.Bot.Builder.ITurnContext turnContext, System.Collections.Generic.IDictionary<string,object> state, Microsoft.Bot.Builder.Dialogs.PromptOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member OnPromptAsync : Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.IDictionary<string, obj> * Microsoft.Bot.Builder.Dialogs.PromptOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnPromptAsync : Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.IDictionary<string, obj> * Microsoft.Bot.Builder.Dialogs.PromptOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnPromptAsync (turnContext As ITurnContext, state As IDictionary(Of String, Object), options As PromptOptions, Optional cancellationToken As CancellationToken = Nothing) As Task

Parametri

turnContext
ITurnContext

Contesto per il turno di conversazione corrente con l'utente.

state
IDictionary<String,Object>

Contiene lo stato per l'istanza corrente del prompt nello stack di dialoghi.

options
PromptOptions

Un oggetto opzioni di prompt costruito a partire dalle opzioni inizialmente fornite nella chiamata a PromptAsync(String, PromptOptions, CancellationToken).

cancellationToken
CancellationToken

Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.

Valori restituiti

Oggetto Task che rappresenta l'operazione asincrona.

Si applica a

OnPromptAsync(ITurnContext, IDictionary<String,Object>, PromptOptions, Boolean, CancellationToken)

Quando sottoposto a override in una classe derivata, richiede all'utente di immettere l'input.

protected virtual System.Threading.Tasks.Task OnPromptAsync(Microsoft.Bot.Builder.ITurnContext turnContext, System.Collections.Generic.IDictionary<string,object> state, Microsoft.Bot.Builder.Dialogs.PromptOptions options, bool isRetry, System.Threading.CancellationToken cancellationToken = default);
abstract member OnPromptAsync : Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.IDictionary<string, obj> * Microsoft.Bot.Builder.Dialogs.PromptOptions * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnPromptAsync : Microsoft.Bot.Builder.ITurnContext * System.Collections.Generic.IDictionary<string, obj> * Microsoft.Bot.Builder.Dialogs.PromptOptions * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnPromptAsync (turnContext As ITurnContext, state As IDictionary(Of String, Object), options As PromptOptions, isRetry As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task

Parametri

turnContext
ITurnContext

Contesto per il turno di conversazione corrente con l'utente.

state
IDictionary<String,Object>

Contiene lo stato per l'istanza corrente del prompt nello stack di dialoghi.

options
PromptOptions

Un oggetto opzioni di prompt costruito a partire dalle opzioni inizialmente fornite nella chiamata a PromptAsync(String, PromptOptions, CancellationToken).

isRetry
Boolean

Oggetto Boolean che rappresenta se il prompt è un nuovo tentativo.

cancellationToken
CancellationToken

Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.

Valori restituiti

Oggetto Task che rappresenta il risultato dell'operazione asincrona.

Si applica a