Share via


LanguageGenerator.GenerateAsync Method

Definition

Method to bind data to string.

public abstract System.Threading.Tasks.Task<object> GenerateAsync (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, string template, object data, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateAsync : Microsoft.Bot.Builder.Dialogs.DialogContext * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
Public MustOverride Function GenerateAsync (dialogContext As DialogContext, template As String, data As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)

Parameters

dialogContext
DialogContext

dialogContext.

template
String

template or [templateId].

data
Object

data to bind to.

cancellationToken
CancellationToken

the CancellationToken for the task.

Returns

object or text.

Applies to