TemplateBaseAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用 \ref 模式的所有属性使用的抽象基类。
public abstract class TemplateBaseAttribute : Microsoft.Bot.Builder.FormFlow.FormFlowAttribute
type TemplateBaseAttribute = class
inherit FormFlowAttribute
Public MustInherit Class TemplateBaseAttribute
Inherits FormFlowAttribute
- 继承
- 派生
构造函数
TemplateBaseAttribute(String[]) |
使用随机选择的多个模式进行初始化。 |
TemplateBaseAttribute(TemplateBaseAttribute) |
从另一个模板初始化。 |
属性
AllowDefault |
处理 \ref 模式字符串中的选项 {||} 时,请提供默认值的选择(如果存在)。 |
ChoiceCase |
在 \ref 模式字符串中显示 {||} 引用中的选项时的控制事例。 |
ChoiceFormat |
在 \ref patterns 字符串中显示 {||} 选项时,用于显示每个选项的格式字符串。 |
ChoiceLastSeparator |
在 \ref 模式字符串中使用 {||} 构造内联选项列表时,在最后一个选项之前使用的字符串。 |
ChoiceParens |
在 \ref 模式中为 {||} 构造内联选项列表时,字符串控制是否在选项周围包含括号。 |
ChoiceSeparator |
在 \ref 模式字符串中使用 {||} 构造内联列表时,在除最后一个选项之外的所有选项之间使用的字符串。 |
ChoiceStyle |
在 \ref 模式字符串中处理时如何显示选项 {||}。 |
Feedback |
控制用户在每次输入后获得的反馈类型。 |
FieldCase |
在 \ref 模式字符串中显示 {&} 字段名称引用时的控制事例。 |
IsLocalizable |
如此 如果属性是可本地化的。 (继承自 FormFlowAttribute) |
LastSeparator |
在 \ref 模式字符串中使用 {[]} 构造列表时,在列表中最后一个值之前使用的字符串。 |
Patterns |
所有可能的模板。 |
Separator |
在 \ref 模式字符串中使用 {[]} 构造列表时,该字符串在除最后一个值之外的所有值之间使用。 |
ValueCase |
在 \ref 模式字符串中显示 {} 值引用时的控制用例。 |
方法
ApplyDefaults(TemplateBaseAttribute) |
提供的 将覆盖 |
Pattern() |
使用 IPrompt<T>生成字符串时要使用的模式。 |