TypedTableBaseExtensions::Where<TRow> Method (TypedTableBase<TRow>^, Func<TRow, Boolean>^)
.NET Framework (current version)
Filters a sequence of rows based on the specified predicate.
Assembly: System.Data.DataSetExtensions (in System.Data.DataSetExtensions.dll)
public: generic<typename TRow> where TRow : DataRow [ExtensionAttribute] static EnumerableRowCollection<TRow>^ Where( TypedTableBase<TRow>^ source, Func<TRow, bool>^ predicate )
Parameters
- source
-
Type:
System.Data::TypedTableBase<TRow>^
A TypedTableBase<T> that contains the DataRow elements to filter.
- predicate
-
Type:
System::Func<TRow, Boolean>^
A function to test each element for a condition.
Return Value
Type: System.Data::EnumerableRowCollection<TRow>^An OrderedEnumerableRowCollection<TRow> that contains rows from the input sequence that satisfy the condition.
Type Parameters
- TRow
The type of the row elements in source, DataRow.
.NET Framework
Available since 3.5
Available since 3.5
Show: