MultiLanguageGeneratorBase.GenerateAsync 方法

定义

查找与当前上下文区域设置匹配的语言生成器。

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

参数

dialogContext
DialogContext

当前会话轮次的上下文。

template
String

模板。

data
Object

要绑定到的数据。

cancellationToken
CancellationToken

CancellationToken任务的 。

返回

生成器。

适用于