語言

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.

屬性

適用於