Partager via


SqlColumnBinder.GetByte Method (DbDataReader, Byte, Byte)

Retrieves the value of this column as an int from the given reader.

An exception will be thrown if the column is null

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Function GetByte ( _
    reader As DbDataReader, _
    nullValue As Byte, _
    missingColumnValue As Byte _
) As Byte
public byte GetByte(
    DbDataReader reader,
    byte nullValue,
    byte missingColumnValue
)
public:
unsigned char GetByte(
    DbDataReader^ reader, 
    unsigned char nullValue, 
    unsigned char missingColumnValue
)
member GetByte : 
        reader:DbDataReader * 
        nullValue:byte * 
        missingColumnValue:byte -> byte
public function GetByte(
    reader : DbDataReader, 
    nullValue : byte, 
    missingColumnValue : byte
) : byte

Parameters

  • nullValue
    Type: System.Byte

    Value to return if DB column is null.

  • missingColumnValue
    Type: System.Byte

    Value to return if DB column not found.

Return Value

Type: System.Byte

.NET Framework Security

See Also

Reference

SqlColumnBinder Class

GetByte Overload

Microsoft.TeamFoundation.Framework.Server Namespace