TypedTableBaseExtensions.AsEnumerable<TRow> Metoda

Definicja

Wylicza elementy TypedTableBase<T> wiersza danych obiektu i zwraca EnumerableRowCollection<TRow> obiekt, gdzie parametr T ogólny to DataRow. Ten obiekt może być używany w wyrażeniu LINQ lub zapytaniu metody.

public:
generic <typename TRow>
 where TRow : System::Data::DataRow[System::Runtime::CompilerServices::Extension]
 static System::Data::EnumerableRowCollection<TRow> ^ AsEnumerable(System::Data::TypedTableBase<TRow> ^ source);
public static System.Data.EnumerableRowCollection<TRow> AsEnumerable<TRow> (this System.Data.TypedTableBase<TRow> source) where TRow : System.Data.DataRow;
static member AsEnumerable : System.Data.TypedTableBase<'Row (requires 'Row :> System.Data.DataRow)> -> System.Data.EnumerableRowCollection<'Row (requires 'Row :> System.Data.DataRow)> (requires 'Row :> System.Data.DataRow)
<Extension()>
Public Function AsEnumerable(Of TRow As DataRow) (source As TypedTableBase(Of TRow)) As EnumerableRowCollection(Of TRow)

Parametry typu

TRow

Typ, na który mają być konwertowane elementy źródła.

Parametry

source
TypedTableBase<TRow>

Źródło TypedTableBase<T> do wyliczenia.

Zwraca

Obiekt EnumerableRowCollection<TRow> , w którym parametr T ogólny to DataRow.

Dotyczy