SqlColumnBinder.GetByte 方法 (DbDataReader, Byte, Byte)

检索该列的值作为int给定读取器。

如果该列为空,则将引发异常

命名空间:  Microsoft.TeamFoundation.Framework.Server
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
Public Function GetByte ( _
    reader As DbDataReader, _
    nullValue As Byte, _
    missingColumnValue As Byte _
) As Byte
public byte GetByte(
    DbDataReader reader,
    byte nullValue,
    byte missingColumnValue
)

参数

  • nullValue
    类型:System.Byte
    如果DB列为空,则值返回。
  • missingColumnValue
    类型:System.Byte
    值返回;如果未找到的DB列。

返回值

类型:System.Byte

.NET Framework 安全性

请参见

参考

SqlColumnBinder 类

GetByte 重载

Microsoft.TeamFoundation.Framework.Server 命名空间