Compartir a través de


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

Definición

Dado el enlace de contexto de turno a los datos para crear el objeto de 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

datos a los que se va a enlazar. Si es Null, se usará dc.State.

cancellationToken
CancellationToken

para CancellationToken esta tarea.

Devoluciones

instancia de T.

Implementaciones

Se aplica a