ElementAtOrDefault(TRow) Method
Collapse the table of content
Expand the table of content

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.

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

public static TRow ElementAtOrDefault<TRow>(
	this TypedTableBase<TRow> source,
	int index
where TRow : DataRow


Type: System.Data.TypedTableBase<TRow>

An enumerable object to return an element from.

Type: System.Int32

The zero-based index of the element to retrieve.

Return Value

Type: TRow

The element at a specified row in a sequence.

Type Parameters


The type of the elements or the row.

.NET Framework
Available since 4.5
Return to top
© 2016 Microsoft