Mimer SQL Data Provider
GetTimeOnly Method




Mimer.Data.Client Namespace > MimerDataReader Class : GetTimeOnly Method
The zero-based column ordinal position.
Gets the value of the specified column as a System.TimeOnly object.
Syntax
'Declaration
 
Public Function GetTimeOnly( _
   ByVal i As Integer _
) As TimeOnly
public TimeOnly GetTimeOnly( 
   int i
)
public function GetTimeOnly( 
    i: Integer
): TimeOnly; 
public function GetTimeOnly( 
   i : int
) : TimeOnly;
public: TimeOnly GetTimeOnly( 
   int i
) 

Parameters

i
The zero-based column ordinal position.

Return Value

The value of the column as a System.TimeOnly object.
Exceptions
ExceptionDescription
The underlying SQL data type cannot be converted to System.TimeOnly.
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, TIMESTAMP, or a character data type that is formatted according to ANSI SQL date time formats (hh:mm:ss.fff).

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

Requirements

.NET
Version 6.0 or later

See Also

Reference

MimerDataReader Class
MimerDataReader Members