DB2DataReader.GetDB2Int16 Method
Creates an instance of a DB2Int16 object from column data.
- Namespace:
IBM.Data.DB2
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[Visual Basic]
Public Function GetDB2Int16( _
ByVal i As Integer _
) As IBM.Data.DB2Types.DB2Int16
[C#]
public IBM.Data.DB2Types.DB2Int16 GetDB2Int16 (int i)
[C++]
public: IBM.Data.DB2Types.DB2Int16 GetDB2Int16(
int i
);
[JScript]
public function GetDB2Int16(
i : int
) : IBM.Data.DB2Types.DB2Int16;
Parameters
- i
- The zero-based column ordinal.
Return value
A DB2Int16 object representing the column value.
Remarks
No conversions are performed.
The
following table describes the mapping between the return object data
type and the data server data type.
DB2®Type Data Type | Db2® Data Type | Informix® Data Type |
---|---|---|
DB2Int16 | SMALLINT | BOOLEAN, SMALLINT |
Exceptions
Exception type | Condition |
---|---|
InvalidCastException | The specified cast is not valid. |
DB2Exception | Invalid conversion. |