Mimer SQL Data Provider
GetInt16 Method

Mimer.Data.Client Namespace > MimerDataReader Class : GetInt16 Method
The zero-based column ordinal position.
Gets the value of the specified column as a signed 16-bit integer number.
Public Overrides NotOverridable Function GetInt16( _
   ByVal i As Integer _
) As Short
public override short GetInt16( 
   int i
public function GetInt16( 
    i: Integer
): Int16; override; 
public override function GetInt16( 
   i : int
) : short;
public: short GetInt16( 
   int i
) override 


The zero-based column ordinal position.

Return Value

The value of the column as a System.Int16.
The underlying SQL data type cannot be converted to System.Int16.
The MimerDataReader is not positioned on a row.
The column ordinal is outside the valid range.
Supported SQL data types for the conversion are any numeric data type or INTERVAL with a single value field: INTERVAL YEAR, INTERVAL MONTH, INTERVAL DAY, INTERVAL HOUR, INTERVAL MINUTE, or INTERVAL SECOND.

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


.NET Framework
Version 2.0 or later

See Also


MimerDataReader Class
MimerDataReader Members