TypedTableBaseExtensions.Where<TRow> 方法

定義

根據指定的述詞篩選數據列序列。

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)

類型參數

TRow

列元素sourceDataRow的類型,。

參數

source
TypedTableBase<TRow>

包含TypedTableBase<T>要過濾元素的 ADataRow

predicate
Func<TRow,Boolean>

一個用來測試每個元素條件的函數。

傳回

包含 OrderedEnumerableRowCollection<TRow> 輸入序列中滿足條件的列。

適用於