PromptAttribute 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| PromptAttribute(TemplateAttribute) |
根據 . 來定義一個提示詞 TemplateAttribute。 |
| PromptAttribute(String[]) |
定義一個提示詞,隨機選擇一個或多個 \ref模式模式。 |
PromptAttribute(TemplateAttribute)
根據 . 來定義一個提示詞 TemplateAttribute。
public PromptAttribute(Microsoft.Bot.Builder.FormFlow.TemplateAttribute pattern);
new Microsoft.Bot.Builder.FormFlow.PromptAttribute : Microsoft.Bot.Builder.FormFlow.TemplateAttribute -> Microsoft.Bot.Builder.FormFlow.PromptAttribute
Public Sub New (pattern As TemplateAttribute)
參數
- pattern
- TemplateAttribute
要使用的範本。
適用於
PromptAttribute(String[])
定義一個提示詞,隨機選擇一個或多個 \ref模式模式。
public PromptAttribute(params string[] patterns);
new Microsoft.Bot.Builder.FormFlow.PromptAttribute : string[] -> Microsoft.Bot.Builder.FormFlow.PromptAttribute
Public Sub New (ParamArray patterns As String())
參數
- patterns
- String[]
可選擇的圖案。