Share via


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 資料行為 null。
  • missingColumnValue
    類型:System.Byte
    傳回的值,如果 DB 行找不到。

傳回值

類型:System.Byte

.NET Framework 安全性

請參閱

參考

SqlColumnBinder 類別

GetByte 多載

Microsoft.TeamFoundation.Framework.Server 命名空間