AsEnumerable(TRow) Method

TypedTableBaseExtensions.AsEnumerable(Of TRow) Method (TypedTableBase(Of TRow))

.NET Framework (current version)
 

Enumerates the data row elements of the TypedTableBase(Of T) and returns an EnumerableRowCollection(Of TRow) object, where the generic parameter T is DataRow. This object can be used in a LINQ expression or method query. 

Namespace:   System.Data
Assembly:  System.Data.DataSetExtensions (in System.Data.DataSetExtensions.dll)

<ExtensionAttribute>
Public Shared Function AsEnumerable(Of TRow As DataRow) (
	source As TypedTableBase(Of TRow)
) As EnumerableRowCollection(Of TRow)

Parameters

source
Type: System.Data.TypedTableBase(Of TRow)

The source TypedTableBase(Of T) to make enumerable.

Return Value

Type: System.Data.EnumerableRowCollection(Of TRow)

An EnumerableRowCollection(Of TRow) object, where the generic parameter T is DataRow.

Type Parameters

TRow

The type to convert the elements of the source to.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft