RegexCase<R>(Regex, ContextualSelector<String,R>) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據正則表達式構造一個案例。
public RegexCase(System.Text.RegularExpressions.Regex regex, Microsoft.Bot.Builder.Dialogs.ContextualSelector<string,R> selector);
new Microsoft.Bot.Builder.Dialogs.RegexCase<'R> : System.Text.RegularExpressions.Regex * Microsoft.Bot.Builder.Dialogs.ContextualSelector<string, 'R> -> Microsoft.Bot.Builder.Dialogs.RegexCase<'R>
Public Sub New (regex As Regex, selector As ContextualSelector(Of String, R))
參數
- regex
- Regex
條件的正則表達式。
- selector
- ContextualSelector<String,R>
是該箱子的情境選擇器。