LanguageGenerator.GenerateAsync Metodo

Definizione

Metodo per associare i dati alla stringa.

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)

Parametri

dialogContext
DialogContext

dialogContext.

template
String

modello o [templateId].

data
Object

dati da associare a.

cancellationToken
CancellationToken

per CancellationToken l'attività.

Restituisce

oggetto o testo.

Si applica a