Share via


Templates.AddTemplate(String, List<String>, String) Method

Definition

Adds a new template and returns the updated Templates instance.

public Microsoft.Bot.Builder.LanguageGeneration.Templates AddTemplate (string templateName, System.Collections.Generic.List<string> parameters, string templateBody);
member this.AddTemplate : string * System.Collections.Generic.List<string> * string -> Microsoft.Bot.Builder.LanguageGeneration.Templates
Public Function AddTemplate (templateName As String, parameters As List(Of String), templateBody As String) As Templates

Parameters

templateName
String

New template name.

parameters
List<String>

New params.

templateBody
String

New template body.

Returns

Updated LG file.

Applies to