语言

TemplateEngineLanguageGenerator 构造函数

定义

重载

TemplateEngineLanguageGenerator()

初始化 TemplateEngineLanguageGenerator 类的新实例。

public TemplateEngineLanguageGenerator();
Public Sub New ()

适用于

TemplateEngineLanguageGenerator(Templates)

初始化 TemplateEngineLanguageGenerator 类的新实例。

public TemplateEngineLanguageGenerator(Microsoft.Bot.Builder.LanguageGeneration.Templates engine = default);
new Microsoft.Bot.Builder.Dialogs.Adaptive.Generators.TemplateEngineLanguageGenerator : Microsoft.Bot.Builder.LanguageGeneration.Templates -> Microsoft.Bot.Builder.Dialogs.Adaptive.Generators.TemplateEngineLanguageGenerator
Public Sub New (Optional engine As Templates = Nothing)

参数

engine
Templates

模板引擎。

适用于

TemplateEngineLanguageGenerator(Resource, Dictionary<String,IList<Resource>>)

初始化 TemplateEngineLanguageGenerator 类的新实例。

public TemplateEngineLanguageGenerator(Microsoft.Bot.Builder.Dialogs.Declarative.Resources.Resource resource, System.Collections.Generic.Dictionary<string,System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Declarative.Resources.Resource>> resourceMapping);
new Microsoft.Bot.Builder.Dialogs.Adaptive.Generators.TemplateEngineLanguageGenerator : Microsoft.Bot.Builder.Dialogs.Declarative.Resources.Resource * System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Declarative.Resources.Resource>> -> Microsoft.Bot.Builder.Dialogs.Adaptive.Generators.TemplateEngineLanguageGenerator
Public Sub New (resource As Resource, resourceMapping As Dictionary(Of String, IList(Of Resource)))

参数

resource
Resource

资源。

resourceMapping
Dictionary<String,IList<Resource>>

模板资源加载器委托(locale) ->ImportResolverDelegate.

适用于

TemplateEngineLanguageGenerator(String, Dictionary<String,IList<Resource>>)

注意

This method will soon be deprecated. Use LGResource as the first parameter instead.

初始化 TemplateEngineLanguageGenerator 类的新实例。

[System.Obsolete("This method will soon be deprecated. Use LGResource as the first parameter instead.")]
public TemplateEngineLanguageGenerator(string filePath, System.Collections.Generic.Dictionary<string,System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Declarative.Resources.Resource>> resourceMapping);
[<System.Obsolete("This method will soon be deprecated. Use LGResource as the first parameter instead.")>]
new Microsoft.Bot.Builder.Dialogs.Adaptive.Generators.TemplateEngineLanguageGenerator : string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Declarative.Resources.Resource>> -> Microsoft.Bot.Builder.Dialogs.Adaptive.Generators.TemplateEngineLanguageGenerator
Public Sub New (filePath As String, resourceMapping As Dictionary(Of String, IList(Of Resource)))

参数

filePath
String

LG 模板文件绝对路径。

resourceMapping
Dictionary<String,IList<Resource>>

模板资源加载器委托(locale) ->ImportResolverDelegate.

属性

适用于

TemplateEngineLanguageGenerator(String, String, Dictionary<String,IList<Resource>>)

注意

This method will soon be deprecated. Use LGResource as the first parameter instead.

初始化 TemplateEngineLanguageGenerator 类的新实例。

[System.Obsolete("This method will soon be deprecated. Use LGResource as the first parameter instead.")]
public TemplateEngineLanguageGenerator(string lgText, string id, System.Collections.Generic.Dictionary<string,System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Declarative.Resources.Resource>> resourceMapping);
[<System.Obsolete("This method will soon be deprecated. Use LGResource as the first parameter instead.")>]
new Microsoft.Bot.Builder.Dialogs.Adaptive.Generators.TemplateEngineLanguageGenerator : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<Microsoft.Bot.Builder.Dialogs.Declarative.Resources.Resource>> -> Microsoft.Bot.Builder.Dialogs.Adaptive.Generators.TemplateEngineLanguageGenerator
Public Sub New (lgText As String, id As String, resourceMapping As Dictionary(Of String, IList(Of Resource)))

参数

lgText
String

LG模板文本。

id
String

模板来源可选标签(用于标注模板错误来源)。

resourceMapping
Dictionary<String,IList<Resource>>

模板资源加载器委托(locale) ->ImportResolverDelegate.

属性

适用于