SqlDataRecord.GetByte(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得序數所指定資料行的 Byte 值。
public:
virtual System::Byte GetByte(int ordinal);
public virtual byte GetByte (int ordinal);
abstract member GetByte : int -> byte
override this.GetByte : int -> byte
Public Overridable Function GetByte (ordinal As Integer) As Byte
參數
- ordinal
- Int32
資料行以零為起始的序數。
傳回
資料行的 Byte 值。
實作
例外狀況
ordinal
小於 0 或大於資料行數目 (亦即 FieldCount)。
ordinal
指定的資料行為 null。
類型不符。