Contents Index GetString method GetUInt16 method

ASA Programming Guide
  Adaptive Server Anywhere .NET Data Provider API Reference
    AsaDataReader class

GetTimeSpan method


Description 

The value of the specified column as a TimeSpan object.

Syntax 

TimeSpan GetTimeSpan( int ordinal )

Parameters 

ordinal    An ordinal number indicating the column from which the value is obtained. The numbering is zero-based.

Return Value 

The value of the specified column.

Usage 

The column must be ASA time data type. The data is converted to TimeSpan. The Days property of TimeSpan is always set to 0.

Call AsaDataReader.IsDBNull to check for null values before calling this method.

See also 

Obtaining time values


Contents Index GetString method GetUInt16 method