SqlDataReader.GetByte(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定數據行的值做為位元組。
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 空值。