DB2®UpdatableRecord.GetByte Method

Gets the value of the specified column as a byte.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Function GetByte( _
   ByVal i As Integer _
) As Byte
[C#]
public byte GetByte(
   int i
);
[C++]
public: unsigned char GetByte(
   int i
);
[JScript]
public function GetByte(
   i : int
) : Byte;

Parameters

i
The zero-based column ordinal.

Return value

The value of the specified column as a byte.

Exceptions

Exception type Condition
InvalidCastException The specified cast is not valid.
DB2Exception Invalid conversion.

Remarks

Call IsDBNull to check for null values before calling this method.