语言

TermsAttribute(String[]) 构造函数

定义

匹配用户输入时使用的正则表达式或术语。

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为 的正则表达式。

适用于