MySQL Connector/Net
MySqlDataReaderGetInt16 Method (Int32) |
Gets the value of the specified column as a 16-bit signed integer.
Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9

public override short GetInt16( int i )
Public Overrides Function GetInt16 ( i As Integer ) As Short
public: virtual short GetInt16( int i ) override
abstract GetInt16 : i : int -> int16 override GetInt16 : i : int -> int16
Parameters
- i
- Type: SystemInt32
The zero-based column ordinal.
Return Value
Type: Int16The value of the specified column.
Implements
IDataRecordGetInt16(Int32)IDataRecordGetInt16(Int32)

No conversions are performed; therefore, the data retrieved must already be a 16 bit integer value.
Call IsDBNull to check for null values before calling this method.
