Share via


Templates Constructor

Definition

Initializes a new instance of the Templates class.

public Templates (System.Collections.Generic.IList<Microsoft.Bot.Builder.LanguageGeneration.Template> templates = default, System.Collections.Generic.IList<Microsoft.Bot.Builder.LanguageGeneration.TemplateImport> imports = default, System.Collections.Generic.IList<Microsoft.Bot.Builder.LanguageGeneration.Diagnostic> diagnostics = default, System.Collections.Generic.IList<Microsoft.Bot.Builder.LanguageGeneration.Templates> references = default, string content = default, string id = default, AdaptiveExpressions.ExpressionParser expressionParser = default, Microsoft.Bot.Builder.LanguageGeneration.ImportResolverDelegate importResolver = default, System.Collections.Generic.IList<string> options = default, string source = default, System.Collections.Generic.IDictionary<string,Microsoft.Bot.Builder.LanguageGeneration.Templates> namedReferences = default);
new Microsoft.Bot.Builder.LanguageGeneration.Templates : System.Collections.Generic.IList<Microsoft.Bot.Builder.LanguageGeneration.Template> * System.Collections.Generic.IList<Microsoft.Bot.Builder.LanguageGeneration.TemplateImport> * System.Collections.Generic.IList<Microsoft.Bot.Builder.LanguageGeneration.Diagnostic> * System.Collections.Generic.IList<Microsoft.Bot.Builder.LanguageGeneration.Templates> * string * string * AdaptiveExpressions.ExpressionParser * Microsoft.Bot.Builder.LanguageGeneration.ImportResolverDelegate * System.Collections.Generic.IList<string> * string * System.Collections.Generic.IDictionary<string, Microsoft.Bot.Builder.LanguageGeneration.Templates> -> Microsoft.Bot.Builder.LanguageGeneration.Templates
Public Sub New (Optional templates As IList(Of Template) = Nothing, Optional imports As IList(Of TemplateImport) = Nothing, Optional diagnostics As IList(Of Diagnostic) = Nothing, Optional references As IList(Of Templates) = Nothing, Optional content As String = Nothing, Optional id As String = Nothing, Optional expressionParser As ExpressionParser = Nothing, Optional importResolver As ImportResolverDelegate = Nothing, Optional options As IList(Of String) = Nothing, Optional source As String = Nothing, Optional namedReferences As IDictionary(Of String, Templates) = Nothing)

Parameters

templates
IList<Template>

List of Template instances.

imports
IList<TemplateImport>

List of TemplateImport instances.

diagnostics
IList<Diagnostic>

List of Diagnostic instances.

references
IList<Templates>

List of Templates instances.

content
String

Content of the current Templates instance.

id
String

Id of the current Templates instance.

expressionParser
ExpressionParser

ExpressionParser to parse the expressions in the conent.

importResolver
ImportResolverDelegate

Resolver to resolve LG import id to template text.

options
IList<String>

List of strings representing the options during evaluating the templates.

source
String

Templates source.

namedReferences
IDictionary<String,Templates>

References that imported with the "as" syntax,for example: import as myAlias.

Applies to