TypedTableBaseExtensions.AsEnumerable<TRow> Method
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.
Enumerates the data row elements of the TypedTableBase<T> and returns an EnumerableRowCollection<TRow> object, where the generic parameter T
is DataRow. This object can be used in a LINQ expression or method query.
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)
- TRow
The type to convert the elements of the source to.
- source
- TypedTableBase<TRow>
The source TypedTableBase<T> to make enumerable.
An EnumerableRowCollection<TRow> object, where the generic parameter T
is DataRow.
Produkt | Versiounen |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided), 2.1 |
Feedback zu .NET
.NET ass en Open-Source-Projet. Wielt e Link, fir Feedback ze ginn: