Share via


ChoiceSet.BindAsync(DialogContext, Object, CancellationToken) Method

Definition

Given the turn context bind to the data to create the object of type T.

public System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.Adaptive.Input.ChoiceSet> 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.Adaptive.Input.ChoiceSet>
override this.BindAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Dialogs.Adaptive.Input.ChoiceSet>
Public Function BindAsync (dialogContext As DialogContext, Optional data As Object = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChoiceSet)

Parameters

dialogContext
DialogContext

dialogContext.

data
Object

data to bind to. If Null, then dc.State will be used.

cancellationToken
CancellationToken

the CancellationToken for this task.

Returns

instance of T.

Implements

Applies to