LanguageGenerator.GenerateAsync 方法

定义

将数据绑定到字符串的方法。

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)

参数

dialogContext
DialogContext

dialogContext。

template
String

template 或 [templateId]。

data
Object

要绑定到的数据。

cancellationToken
CancellationToken

CancellationToken任务的 。

返回

对象或文本。

适用于