ActivityTemplate class
定義活動範本,其中範本表達式是本機稱為「內嵌」,並透過已註冊的語言產生器進行處理。
建構函式
| Activity |
初始化 ActivityTemplate 類別的新實例。 |
方法
| bind(Dialog |
將數據系結至範本。 |
| configure(Activity |
|
| get |
建構函式詳細資料
ActivityTemplate(string)
初始化 ActivityTemplate 類別的新實例。
new ActivityTemplate(template?: string)
參數
- template
-
string
要評估以建立活動的範本。
屬性詳細資料
$kind
static $kind: string
屬性值
string
template
取得或設定要評估以建立活動的範本。
template: string
屬性值
string
toString
toString: () => string
屬性值
() => string
方法詳細資料
bind(DialogContext, DialogStateManager)
將數據系結至範本。
function bind(dialogContext: DialogContext, data: DialogStateManager): Promise<Partial<Activity>>
參數
- dialogContext
-
DialogContext
DialogContext
- data
-
DialogStateManager
要系結的數據。
傳回
Promise<Partial<Activity>>
代表異步操作的承諾。
configure(ActivityTemplateConguration)
function configure(config: ActivityTemplateConguration): this
參數
- config
- ActivityTemplateConguration
組態。
傳回
this
具有指定組態的物件。
getConverter(Object)
function getConverter(_property: Object): Converter | ConverterFactory
參數
- _property
-
Object
條件式選取器組態的索引鍵。
傳回
Converter | ConverterFactory
選取器組態的轉換器。