Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere .NET 2.0 API Reference » SADataReader class

GetString method Next Page

GetTimeSpan method

Returns the value of the specified column as a TimeSpan object.


Visual Basic

Public Function GetTimeSpan( _
ByVal ordinal As Integer _
) As TimeSpan


public TimeSpan GetTimeSpan(
int ordinal

Return value

The value of the specified column.


The column must be a SQL Anywhere TIME data type. The data is converted to TimeSpan. The Days property of TimeSpan is always set to 0.

Call SADataReader.IsDBNull method to check for NULL values before calling this method.

For more information, see Obtaining time values.

See also