Mimer SQL Data Provider help
GetTimeSpan Method




Mimer.Data.Client Namespace > MimerDataReader Class : GetTimeSpan Method
Gets the value of the specified column as a System.TimeSpan object.
Syntax
'Declaration
 
Public Function GetTimeSpan( _
   ByVal i As Integer _
) As TimeSpan
public TimeSpan GetTimeSpan( 
   int i
)
public function GetTimeSpan( 
    i: Integer
): TimeSpan; 
public function GetTimeSpan( 
   i : int
) : TimeSpan;
public: TimeSpan GetTimeSpan( 
   int i
) 

Parameters

i

Return Value

The value of the column as a System.TimeSpan object.
Exceptions
ExceptionDescription
The underlying SQL data type cannot be converted to System.TimeSpan.
The MimerDataReader is not positioned on a row.
The column ordinal is outside the valid range.
Remarks
Supported SQL data types for the conversion are: TIME and short interval types such as INTERVAL DAY to INTERVAL SECOND.

Use the IsDBNull method to check for database null value before calling this method.

Requirements

.NET Framework
Version 2.0 or later

See Also

Reference

MimerDataReader Class
MimerDataReader Members