语言

Templates 构造函数

定义

初始化 Templates 类的新实例。

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)

参数

templates
IList<Template>

模板实例列表。

imports
IList<TemplateImport>

模板导入实例列表。

diagnostics
IList<Diagnostic>

诊断实例列表。

references
IList<Templates>

模板实例列表。

content
String

当前模板实例的内容。

id
String

当前模板实例的 ID。

expressionParser
ExpressionParser

ExpressionParser 用于解析协议中的表达。

importResolver
ImportResolverDelegate

解析程序将 LG 导入 ID 解析为模板文本。

options
IList<String>

在评估模板时表示选项的字符串列表。

source
String

模板源。

namedReferences
IDictionary<String,Templates>

以“as”语法导入的引用,例如: import 为myAlias。

适用于