語言

TextTemplate 類別

定義

定義一個文字範本,其中範本表達式為本地化,也就是「內嵌」,並透過註冊的 ILanguageGenerator 處理。

public class TextTemplate : Microsoft.Bot.Builder.Dialogs.ITemplate<string>
type TextTemplate = class
    interface ITemplate<string>
Public Class TextTemplate
Implements ITemplate(Of String)
繼承
TextTemplate
實作

建構函式

名稱 Description
TextTemplate(String)

初始化 TextTemplate 類別的新執行個體。

欄位

名稱 Description
Kind

類別識別碼。

屬性

名稱 Description
Template

取得或設定範本來評估並建立文本。

方法

名稱 Description
BindAsync(DialogContext, Object, CancellationToken)

給定 Turn,context 綁定到資料以建立 type 為字串的物件。

ToString()

回傳一個字串,代表 TextTemplate。

適用於