語言

Chain.Default<T,R>(ContextualSelector<T,R>) 方法

定義

構建一個案例作為預設。

public static Microsoft.Bot.Builder.Dialogs.ICase<T,R> Default<T,R>(Microsoft.Bot.Builder.Dialogs.ContextualSelector<T,R> selector);
static member Default : Microsoft.Bot.Builder.Dialogs.ContextualSelector<'T, 'R> -> Microsoft.Bot.Builder.Dialogs.ICase<'T, 'R>
Public Function Default(Of T, R) (selector As ContextualSelector(Of T, R)) As ICase(Of T, R)

類型參數

T

案件中進入的價值類型。

R

選擇器回傳物件的類型。

參數

selector
ContextualSelector<T,R>

案件的情境選擇器。

傳回

案件。

適用於