SqlColumnBinder.GetByte Method (DbDataReader, 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 _
) As Byte
public byte GetByte(
DbDataReader reader,
byte nullValue
)
public:
unsigned char GetByte(
DbDataReader^ reader,
unsigned char nullValue
)
member GetByte :
reader:DbDataReader *
nullValue:byte -> byte
public function GetByte(
reader : DbDataReader,
nullValue : byte
) : byte
Parameters
- reader
Type: System.Data.Common.DbDataReader
nullValue
Type: System.ByteValue to return if DB column is null.
Return Value
Type: System.Byte
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.