DbDataReader.GetChar(Int32) DbDataReader.GetChar(Int32) DbDataReader.GetChar(Int32) DbDataReader.GetChar(Int32) Method

定义

在派生类中重写时,以单个字符的形式获取指定列的值。When overridden in a derived class, gets the value of the specified column as a single character.

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

参数

ordinal
Int32 Int32 Int32 Int32

从零开始的列序号。The zero-based column ordinal.

返回

指定列的值。The value of the specified column.

实现

异常

指定的强制转换无效。The specified cast is not valid.

适用于

另请参阅