Jaa


TextTemplate.BindAsync(DialogContext, Object, CancellationToken) Method

Definition

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

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

Parameters

dialogContext
DialogContext

The DialogContext for the current turn of conversation.

data
Object

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

cancellationToken
CancellationToken

Optional, the CancellationToken for this task.

Returns

Instance of string.

Implements

Applies to