SqlDataReader.GetByte(Int32) 方法

定義

取得指定數據行的值做為位元組。

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

參數

i
Int32

零基列序數。

傳回

指定欄位的值以位元組表示。

實作

例外狀況

指定的鑄造組合不成立。

備註

不進行任何轉換;因此,所擷取的資料必須已經是一個位元組。

呼叫前先檢查 IsDBNull 空值。

適用於

另請參閱