TemplateImport class
以下是數據模型,可協助用戶輕鬆瞭解和使用 LG 檔案中的 LG 匯入定義。
建構函式
Template |
建立 TemplateImport 類別的新實例。 |
屬性
alias | 範本的別名。 例如:匯入 作為 myAlias。 |
description | 匯入的描述,lg 檔案中包含 『[]』 的內容。 |
id | 這個匯入的標識碼。 |
source |
匯入的原始根來源。 |
方法
to |
建構函式詳細資料
TemplateImport(string, string, SourceRange, string)
建立 TemplateImport 類別的新實例。
new TemplateImport(description: string, id: string, sourceRange: SourceRange, alias?: string)
參數
- description
-
string
匯入描述,其位於 []。
- id
-
string
匯入標識碼,也就是 中的路徑。
- sourceRange
- SourceRange
(xref:botbuilder-lg.範本的SourceRange。
- alias
-
string
匯入別名。
屬性詳細資料
alias
description
匯入的描述,lg 檔案中包含 『[]』 的內容。
description: string
屬性值
string
id
這個匯入的標識碼。
id: string
屬性值
string
sourceRange
方法詳細資料
toString()
function toString(): string
傳回
string