Where(TRow) Method
Collapse the table of content
Expand the table of content

TypedTableBaseExtensions.Where<TRow> Method (TypedTableBase<TRow>, Func<TRow, Boolean>)


Filters a sequence of rows based on the specified predicate.

Namespace:   System.Data
Assembly:  System.Data.DataSetExtensions (in System.Data.DataSetExtensions.dll)

public static EnumerableRowCollection<TRow> Where<TRow>(
	this TypedTableBase<TRow> source,
	Func<TRow, bool> predicate
where TRow : DataRow


Type: System.Data.TypedTableBase<TRow>

A TypedTableBase<T> that contains the DataRow elements to filter.

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


The type of the row elements in source, DataRow.

.NET Framework
Available since 3.5
Return to top
© 2016 Microsoft