Sdílet prostřednictvím


LanguageGenerator.GenerateAsync Metoda

Definice

Metoda pro vazbu dat na řetězec.

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)

Parametry

dialogContext
DialogContext

dialogText.

template
String

template nebo [templateId].

data
Object

data, se která se mají svázat.

cancellationToken
CancellationToken

pro CancellationToken úkol.

Návraty

objekt nebo text.

Platí pro