Freigeben über


Templates Konstruktor

Definition

Initialisiert eine neue Instanz der Templates-Klasse.

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)

Parameter

templates
IList<Template>

Liste der Vorlageninstanzen.

imports
IList<TemplateImport>

Liste der TemplateImport-Instanzen.

diagnostics
IList<Diagnostic>

Liste der Diagnoseinstanzen.

references
IList<Templates>

Liste der Vorlageninstanzen.

content
String

Inhalt der aktuellen Templates-Instanz.

id
String

ID der aktuellen Templates-Instanz.

expressionParser
ExpressionParser

ExpressionParser, um die Ausdrücke im Conent zu analysieren.

importResolver
ImportResolverDelegate

Resolver zum Auflösen der LG-Import-ID in Vorlagentext.

options
IList<String>

Liste der Zeichenfolgen, die die Optionen während der Auswertung der Vorlagen darstellen.

source
String

Vorlagenquelle.

namedReferences
IDictionary<String,Templates>

Verweise, die mit der Syntax "as" importiert wurden, z. B.: import as myAlias.

Gilt für: