Compartilhar via


Templates Construtor

Definição

Inicializa uma nova instância da classe 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)

Parâmetros

templates
IList<Template>

Lista de instâncias de modelo.

imports
IList<TemplateImport>

Lista de instâncias TemplateImport.

diagnostics
IList<Diagnostic>

Lista de instâncias de diagnóstico.

references
IList<Templates>

Lista de instâncias de modelos.

content
String

Conteúdo da instância de Modelos atual.

id
String

Id da instância de Modelos atual.

expressionParser
ExpressionParser

ExpressionParser para analisar as expressões no conent.

importResolver
ImportResolverDelegate

Resolver para resolver a ID de importação lg para o texto do modelo.

options
IList<String>

Lista de cadeias de caracteres que representam as opções durante a avaliação dos modelos.

source
String

Fonte de modelos.

namedReferences
IDictionary<String,Templates>

Referências importadas com a sintaxe "as", por exemplo: importar como myAlias.

Aplica-se a