共用方式為


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 正則運算式。

適用於