Language

Chain.Case メソッド

定義

オーバーロード

名前 説明
Case<R>(Regex, ContextualSelector<String,R>)

正則表現に基づいてケースを構築します。

Case<T,R>(Func<T,Boolean>, ContextualSelector<T,R>)

事件を構築する。

Case<R>(Regex, ContextualSelector<String,R>)

ソース:
Chain.cs

正則表現に基づいてケースを構築します。

public static Microsoft.Bot.Builder.Dialogs.ICase<string,R> Case<R>(System.Text.RegularExpressions.Regex regex, Microsoft.Bot.Builder.Dialogs.ContextualSelector<string,R> selector);
static member Case : System.Text.RegularExpressions.Regex * Microsoft.Bot.Builder.Dialogs.ContextualSelector<string, 'R> -> Microsoft.Bot.Builder.Dialogs.ICase<string, 'R>
Public Function Case(Of R) (regex As Regex, selector As ContextualSelector(Of String, R)) As ICase(Of String, R)

型パラメーター

R

セレクタで返されるオブジェクトの型。

パラメーター

regex
Regex

条件の正則表現です。

selector
ContextualSelector<String,R>

ケースのコンテキストセレクターです。

返品

事件だ。

適用対象

Case<T,R>(Func<T,Boolean>, ContextualSelector<T,R>)

ソース:
Chain.cs

事件を構築する。

public static Microsoft.Bot.Builder.Dialogs.ICase<T,R> Case<T,R>(Func<T,bool> condition, Microsoft.Bot.Builder.Dialogs.ContextualSelector<T,R> selector);
static member Case : Func<'T, bool> * Microsoft.Bot.Builder.Dialogs.ContextualSelector<'T, 'R> -> Microsoft.Bot.Builder.Dialogs.ICase<'T, 'R>
Public Function Case(Of T, R) (condition As Func(Of T, Boolean), selector As ContextualSelector(Of T, R)) As ICase(Of T, R)

型パラメーター

T

ケースに入ってくる価値の種類。

R

セレクタで返されるオブジェクトの型。

パラメーター

condition
Func<T,Boolean>

事件の状況。

selector
ContextualSelector<T,R>

ケースのコンテキストセレクターです。

返品

適用対象