TypedTableBaseExtensions.Where<TRow> Metode

Definisi

Memfilter urutan baris berdasarkan predikat yang ditentukan.

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)

Jenis parameter

TRow

Jenis elemen baris di source, DataRow.

Parameter

source
TypedTableBase<TRow>

TypedTableBase<T> yang berisi elemen yang akan difilterDataRow.

predicate
Func<TRow,Boolean>

Fungsi untuk menguji setiap elemen untuk suatu kondisi.

Mengembalikan

Yang OrderedEnumerableRowCollection<TRow> berisi baris dari urutan input yang memenuhi kondisi.

Berlaku untuk