TermsAttribute(String[]) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
匹配用户输入时使用的正则表达式或术语。
public TermsAttribute(params string[] alternatives);
new Microsoft.Bot.Builder.FormFlow.TermsAttribute : string[] -> Microsoft.Bot.Builder.FormFlow.TermsAttribute
Public Sub New (ParamArray alternatives As String())
参数
- alternatives
- String[]
正则表达式或术语。
注解
如果 MaxPhrase 指定 ,则将传递给 , GenerateTerms(String, Int32) 生成最大短语大小 MaxPhrase为 的正则表达式。