Lingua

LanguageGenerator.GenerateAsync Metodo

Definizione

Metodo per associare dati a stringhe.

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

dialogoContesto.

template
String

template o [templateId].

data
Object

dati a cui collegare.

cancellationToken
CancellationToken

il CancellationToken per il compito.

Valori restituiti

oggetto o testo.

Si applica a