This documentation is archived and is not being maintained.

IDataRecord.GetByte Method

Gets the 8-bit unsigned integer value of the specified column.

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

Parameters

i
The zero-based column ordinal.

Return Value

The 8-bit unsigned integer value of the specified column.

Exceptions

Exception Type Condition
IndexOutOfRangeException The index passed was outside the range of 0 through FieldCount.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IDataRecord Interface | IDataRecord Members | System.Data Namespace

Show: