TypedTableBaseExtensions.Where(Of TRow) Method (TypedTableBase(Of TRow), Func(Of TRow, Boolean))

 

Filters a sequence of rows based on the specified predicate.

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

<ExtensionAttribute>
Public Shared Function Where(Of TRow As DataRow) (
	source As TypedTableBase(Of TRow),
	predicate As Func(Of TRow, Boolean)
) As EnumerableRowCollection(Of TRow)

Parameters

source
Type: System.Data.TypedTableBase(Of TRow)

A TypedTableBase(Of T) that contains the DataRow elements to filter.

predicate
Type: System.Func(Of TRow, Boolean)

A function to test each element for a condition.

Return Value

Type: System.Data.EnumerableRowCollection(Of TRow)

An OrderedEnumerableRowCollection(Of 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
Return to top
Show: