Partilhar via


LanguageGenerator.GenerateAsync Método

Definição

Método para vincular dados à cadeia.

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)

Parâmetros

dialogContext
DialogContext

dialogContext.

template
String

modelo ou [templateId].

data
Object

dados a vincular.

cancellationToken
CancellationToken

para CancellationToken a tarefa.

Devoluções

objeto ou texto.

Aplica-se a