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

适用于