Langue

Chain.Where<T>(IDialog<T>, Func<T,Boolean>) Méthode

Définition

Lorsque l’antécédent IDialog<TResult> est terminé, évaluez le prédicat et décidez de continuer.

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)

Paramètres de type

T

Le type de dialogue précédent.

Paramètres

antecedent
IDialog<T>

Le dialogue IDialog<TResult>antécédent.

predicate
Func<T,Boolean>

Le prédicat pour décider s’il faut poursuivre la chaîne.

Retours

IDialog<T>

Le résultat de l’antécédent IDialog<TResult> ou de son annulation, enveloppé dans un IDialog<TResult>.

S’applique à