OleDbDataReader.GetByte(Int32) 方法

定義

取得指定資料行的值做為位元組。

public:
 override System::Byte GetByte(int ordinal);
public:
 virtual System::Byte GetByte(int ordinal);
public override byte GetByte (int ordinal);
public byte GetByte (int ordinal);
override this.GetByte : int -> byte
abstract member GetByte : int -> byte
override this.GetByte : int -> byte
Public Overrides Function GetByte (ordinal As Integer) As Byte
Public Function GetByte (ordinal As Integer) As Byte

參數

ordinal
Int32

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

傳回

位元組形式的指定資料行值。

實作

例外狀況

指定的轉型無效。

備註

不會執行轉換;因此,擷取的數據必須已經是位元組。

呼叫 IsDBNull 以在呼叫這個方法之前尋找 Null 值。

適用於

另請參閱