Share via


SqlDataRecord.GetTimeSpan(Int32) Method

Definition

Returns the specified column's data as a TimeSpan.

public:
 virtual TimeSpan GetTimeSpan(int ordinal);
public virtual TimeSpan GetTimeSpan (int ordinal);
abstract member GetTimeSpan : int -> TimeSpan
override this.GetTimeSpan : int -> TimeSpan
Public Overridable Function GetTimeSpan (ordinal As Integer) As TimeSpan

Parameters

ordinal
Int32

The zero-based column ordinal.

Returns

The value of the specified column as a TimeSpan.

Applies to