次の方法で共有


Chain.Case メソッド

定義

オーバーロード

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

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

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

ケースを構築します。

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

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

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>)

ケースを構築します。

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>

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

戻り値

適用対象