TypedTableBaseExtensions::ElementAtOrDefault<TRow> Method (TypedTableBase<TRow>^, Int32)
.NET Framework (current version)
Returns the element at a specified row in a sequence or a default value if the row is out of range.
Assembly: System.Data.DataSetExtensions (in System.Data.DataSetExtensions.dll)
public: generic<typename TRow> where TRow : DataRow [ExtensionAttribute] static TRow ElementAtOrDefault( TypedTableBase<TRow>^ source, int index )
Parameters
- source
-
Type:
System.Data::TypedTableBase<TRow>^
An enumerable object to return an element from.
- index
-
Type:
System::Int32
The zero-based index of the element to retrieve.
Return Value
Type: TRowThe element at a specified row in a sequence.
Type Parameters
- TRow
The type of the elements or the row.
.NET Framework
Available since 4.5
Available since 4.5
Show: