DbDataReader.GetByte(Int32) 方法

定義

在衍生類別中覆寫時,取得指定資料行的值作為位元組。

public:
 abstract System::Byte GetByte(int ordinal);
public abstract byte GetByte (int ordinal);
abstract member GetByte : int -> byte
Public MustOverride Function GetByte (ordinal As Integer) As Byte

參數

ordinal
Int32

以零為基底的資料行序數。

傳回

指定的資料行值。

實作

例外狀況

資料行索引超出範圍。

指定的轉型無效。

適用於

另請參閱