语言

PromptAttribute 类

定义

定义询问领域时使用的提示词。

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
[System.Serializable]
public class PromptAttribute : Microsoft.Bot.Builder.FormFlow.Advanced.TemplateBaseAttribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
[<System.Serializable>]
type PromptAttribute = class
    inherit TemplateBaseAttribute
Public Class PromptAttribute
Inherits TemplateBaseAttribute
继承
属性

注解

提示默认来自 \ref模板。 这个属性允许你用另一个 \ref patterns字符串来覆盖它。 实际提示将从你提供的选项中随机选择。

构造函数

名称 说明
PromptAttribute(String[])

定义一个提示词,随机选择一个或多个 \ref模式模式。

PromptAttribute(TemplateAttribute)

基于 TemplateAttribute。

属性

名称 说明
AllowDefault

在处理 \ref模式字符串中的选择{||}时,如果存在默认值,请提供选项。

(继承自 TemplateBaseAttribute)
ChoiceCase

在 \ref pattern字符串中显示{||}引用中的选择时,控制情况。

(继承自 TemplateBaseAttribute)
ChoiceFormat

格式字符串用于在 \ref模式字符串中展示{||}选项时呈现每个选择。

(继承自 TemplateBaseAttribute)
ChoiceLastSeparator

在构建使用 {||} 的 \ref pattern 字符串中的内联选择列表时,该字符串是最后一个选择之前使用的字符串。

(继承自 TemplateBaseAttribute)
ChoiceParens

在 \r中构建 {||} 的内联选择列表时,EF 模式字符串控制是否在选择周围加括号。

(继承自 TemplateBaseAttribute)
ChoiceSeparator

在构造内联列表时,使用 {||} 在 \ref 模式字符串中,即除最后一个外所有选项中使用的字符串。

(继承自 TemplateBaseAttribute)
ChoiceStyle

如何在 \rEF 模式字符串中处理 {||} 选项时显示 {||} 。

(继承自 TemplateBaseAttribute)
Feedback

控制用户在每次输入后获得的反馈类型。

(继承自 TemplateBaseAttribute)
FieldCase

在 \rEF 模式字符串中显示 {&} 字段名引用时的控制情况。

(继承自 TemplateBaseAttribute)
IsLocalizable

如果属性是可局部化的,则为真。

(继承自 FormFlowAttribute)
LastSeparator

在构建列表中使用 {[]} 的 \ref patterns 字符串时,即列表中最后一个值之前使用的字符串。

(继承自 TemplateBaseAttribute)
Patterns

所有可能的模板。

(继承自 TemplateBaseAttribute)
Separator

在构造使用 {[]} 的列表时,\ref 模式字符串中,除了最后一个值外,所有值之间都用的字符串。

(继承自 TemplateBaseAttribute)
ValueCase

在 EF patterns 字符串中显示 {} 值引用时的控制情况 \r

(继承自 TemplateBaseAttribute)

方法

名称 说明
ApplyDefaults(TemplateBaseAttribute)

模板中的任何默认值都会被提供的 defaultTemplate。

(继承自 TemplateBaseAttribute)
Pattern()

生成字符串 IPrompt<T>时应采用的模式。

(继承自 TemplateBaseAttribute)

适用于