Creates an instance of a DB2Binary object from the column data.
[Visual Basic]
Public Function GetDB2Binary( _
ByVal i As Integer _
) As IBM.Data.DB2Types.DB2Binary
[C#]
public IBM.Data.DB2Types.DB2Binary GetDB2Binary (int i)
[C++]
public: IBM.Data.DB2Types.DB2Binary GetDB2Binary(
int i
);
[JScript]
public function GetDB2Binary(
i : int
) : IBM.Data.DB2Types.DB2Binary;
A DB2Binary object representing the column value.
No conversions are performed.
| DB2Type Data Type | DB2 Type | Informix Type |
|---|---|---|
| DB2Binary | BINARY, CHAR FOR BIT DATA, VARBINARY, LONG VARCHAR FOR BIT DATA |
| Exception type | Condition |
|---|---|
| InvalidCastException | The specified cast is not valid. |
| DB2Exception | Invalid conversion. |