Chain.Where(IDialog<T>, Func<T,Boolean>) Chain.Where(IDialog<T>, Func<T,Boolean>) Chain.Where(IDialog<T>, Func<T,Boolean>) Method

Definition

When the antecedent IDialog<TResult> has completed, evaluate the predicate and decide whether to continue.

public static Microsoft.Bot.Builder.Dialogs.IDialog<T> Where<T> (this Microsoft.Bot.Builder.Dialogs.IDialog<T> antecedent, Func<T,bool> predicate);
static member Where : Microsoft.Bot.Builder.Dialogs.IDialog<'T> * Func<'T, bool> -> Microsoft.Bot.Builder.Dialogs.IDialog<'T>
<Extension()>
Public Function Where(Of T) (antecedent As IDialog(Of T), predicate As Func(Of T, Boolean)) As IDialog(Of T)

Type Parameters

T

The type of the antecedent dialog.

Parameters

antecedent
IDialog<T>

The antecedent dialog IDialog<TResult>.

predicate
Func<T,Boolean>

The predicate to decide whether to continue the chain.

Returns

IDialog<T>

The result from the antecedent IDialog<TResult> or its cancellation, wrapped in a IDialog<TResult>.

Applies to