Share via


Templates.Evaluate(String, Object, EvaluationOptions) Method

Definition

Evaluate a template with given name and scope.

public object Evaluate (string templateName, object scope = default, Microsoft.Bot.Builder.LanguageGeneration.EvaluationOptions opt = default);
member this.Evaluate : string * obj * Microsoft.Bot.Builder.LanguageGeneration.EvaluationOptions -> obj
Public Function Evaluate (templateName As String, Optional scope As Object = Nothing, Optional opt As EvaluationOptions = Nothing) As Object

Parameters

templateName
String

Template name to be evaluated.

scope
Object

State visible in the evaluation.

opt
EvaluationOptions

EvaluationOptions in evaluating a template.

Returns

Evaluate result.

Applies to