TypedTableBaseExtensions::AsEnumerable<TRow> Method (TypedTableBase<TRow>^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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. 

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

public:
generic<typename TRow>
where TRow : DataRow
[ExtensionAttribute]
static EnumerableRowCollection<TRow>^ AsEnumerable(
	TypedTableBase<TRow>^ source
)

Parameters

source
Type: System.Data::TypedTableBase<TRow>^

The source TypedTableBase<T> to make enumerable.

Return Value

Type: System.Data::EnumerableRowCollection<TRow>^

An EnumerableRowCollection<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: