GetByte Method

Gets the value of the specified column as a Byte.

Syntax

byte GetByte( int ordinal )

Parameters

ordinal – an ordinal number indicating the column from which the value is obtained. The numbering is zero-based.

Return Value

The value of the column.

Implements

IDataRecord.GetByte

Usage

No conversions are performed. Use this method to retrieve data from columns of type tinyint.