Share via


TypedTableBaseExtensions.Where<TRow> Método

Definição

Filtra uma sequência de linhas com base no predicado especificado.

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)

Parâmetros de tipo

TRow

O tipo dos elementos de linha em source, DataRow.

Parâmetros

source
TypedTableBase<TRow>

Um TypedTableBase<T> que contém os elementos DataRow a serem filtrados.

predicate
Func<TRow,Boolean>

Uma função para testar cada elemento em relação a uma condição.

Retornos

Um OrderedEnumerableRowCollection<TRow> que contém linhas da sequência de entrada que atendem à condição.

Aplica-se a