TypedTableBaseExtensions.Where<TRow> Méthode

Définition

Filtre une séquence de lignes en fonction du prédicat spécifié.

public:
generic <typename TRow>
 where TRow : System::Data::DataRow[System::Runtime::CompilerServices::Extension]
 static System::Data::EnumerableRowCollection<TRow> ^ Where(System::Data::TypedTableBase<TRow> ^ source, Func<TRow, bool> ^ predicate);
public static System.Data.EnumerableRowCollection<TRow> Where<TRow> (this System.Data.TypedTableBase<TRow> source, Func<TRow,bool> predicate) where TRow : System.Data.DataRow;
static member Where : System.Data.TypedTableBase<'Row (requires 'Row :> System.Data.DataRow)> * Func<'Row, bool (requires 'Row :> System.Data.DataRow)> -> System.Data.EnumerableRowCollection<'Row (requires 'Row :> System.Data.DataRow)> (requires 'Row :> System.Data.DataRow)
<Extension()>
Public Function Where(Of TRow As DataRow) (source As TypedTableBase(Of TRow), predicate As Func(Of TRow, Boolean)) As EnumerableRowCollection(Of TRow)

Paramètres de type

TRow

Type des éléments de ligne dans source, DataRow.

Paramètres

source
TypedTableBase<TRow>

TypedTableBase<T> qui contient les éléments DataRow à filtrer.

predicate
Func<TRow,Boolean>

Fonction permettant de tester chaque élément par rapport à une condition.

Retours

OrderedEnumerableRowCollection<TRow> qui contient les lignes de la séquence d'entrée qui satisfont la condition.

S’applique à