TypedTableBaseExtensions.Where<TRow> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Filters a sequence of rows based on the specified predicate.
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)
Type Parameters
- TRow
The type of the row elements in source
, DataRow.
Parameters
- source
- TypedTableBase<TRow>
A TypedTableBase<T> that contains the DataRow elements to filter.
Returns
An OrderedEnumerableRowCollection<TRow> that contains rows from the input sequence that satisfy the condition.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.