TypedTableBaseExtensions.Where<TRow> Metodo

Definizione

Filtra una sequenza di righe in base al predicato specificato.

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)

Parametri di tipo

TRow

Tipo degli elementi di riga in source, DataRow.

Parametri

source
TypedTableBase<TRow>

Oggetto TypedTableBase<T> contenente gli DataRow elementi da filtrare.

predicate
Func<TRow,Boolean>

Funzione per testare ogni elemento per una condizione.

Valori restituiti

Oggetto OrderedEnumerableRowCollection<TRow> contenente righe della sequenza di input che soddisfano la condizione.

Si applica a