Mimer SQL Data Provider
GetByte Method




Mimer.Data.Client Namespace > MimerDataReader Class : GetByte Method
The zero-based column ordinal position.
Gets the value of the specified column as a byte.
Syntax
'Declaration
 
Public Overrides NotOverridable Function GetByte( _
   ByVal i As Integer _
) As Byte
public override byte GetByte( 
   int i
)
public function GetByte( 
    i: Integer
): Byte; override; 
public override function GetByte( 
   i : int
) : byte;
public: byte GetByte( 
   int i
) override 

Parameters

i
The zero-based column ordinal position.

Return Value

The value of the column as a byte.
Exceptions
ExceptionDescription
The underlying SQL data type cannot be converted to byte.
The MimerDataReader is not positioned on a row.
The column ordinal is outside the valid range.
Remarks
Supported SQL data types for the conversion are any numeric data type.

Use the IsDBNull method to check for database null value before calling this method.

Requirements

.NET Framework
Version 2.0 or later

See Also

Reference

MimerDataReader Class
MimerDataReader Members