Partilhar via


ChoiceOptionsSet.BindAsync(DialogContext, Object, CancellationToken) Método

Definição

Dado o enlace de contexto de viragem aos dados para criar o objeto do tipo T.

public System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions> BindAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, object data = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BindAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions>
override this.BindAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.Choices.ChoiceFactoryOptions>
Public Function BindAsync (dialogContext As DialogContext, Optional data As Object = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChoiceFactoryOptions)

Parâmetros

dialogContext
DialogContext

dialogContext.

data
Object

dados a vincular. Se For Nulo, será utilizado dc.State.

cancellationToken
CancellationToken

para CancellationToken esta tarefa.

Devoluções

instância de T.

Implementações

Aplica-se a