語言

OdbcDataReader.GetChar(Int32) 方法

定義

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

public:
 override char GetChar(int i);
public:
 virtual char GetChar(int i);
public override char GetChar(int i);
public char GetChar(int i);
override this.GetChar : int -> char
abstract member GetChar : int -> char
override this.GetChar : int -> char
Public Overrides Function GetChar (i As Integer) As Char
Public Function GetChar (i As Integer) As Char

參數

i
Int32

零基列序數。

傳回

指定欄位的值作為一個字元。

實作

例外狀況

指定的鑄造組合不成立。

備註

轉換是根據 ODBC 驅動程式的底層能力執行的。 若不支援轉換,方法呼叫將失敗。

呼叫前先 IsDBNull 尋找空值,再呼叫此方法。

適用於

另請參閱