共用方式為


TemplateEngineLanguageGenerator.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

傳回

產生的文字。

適用於