語言

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為 的正則表達式。

適用於