IDataRecord.GetChar(Int32) 方法

定義

取得指定資料行的字元值。

public:
 char GetChar(int i);
public char GetChar (int i);
abstract member GetChar : int -> char
Public Function GetChar (i As Integer) As Char

參數

i
Int32

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

傳回

指定資料行的字元值。

例外狀況

傳遞的索引超出 0 到 FieldCount 的範圍。

適用於