GetByte Method

Returns the value of the column at the specified index as a byte.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public Overrides Function GetByte ( _
    ordinal As Integer _
) As Byte
'Usage
Dim instance As SqlCeResultSet
Dim ordinal As Integer
Dim returnValue As Byte

returnValue = instance.GetByte(ordinal)
public override byte GetByte(
    int ordinal
)
public:
virtual unsigned char GetByte(
    int ordinal
) override
abstract GetByte : 
        ordinal:int -> byte 
override GetByte : 
        ordinal:int -> byte 
public override function GetByte(
    ordinal : int
) : byte

Parameters

Return Value

Type: System. . :: . .Byte
The value of the column at the specified index.

Implements

IDataRecord. . :: . .GetByte(Int32)

Remarks

An exception is thrown if no field exists at the specified index.

See Also

Reference

SqlCeResultSet Class

SqlCeResultSet Members

System.Data.SqlServerCe Namespace