SqlDataRecord.GetSqlChars(Int32) SqlDataRecord.GetSqlChars(Int32) SqlDataRecord.GetSqlChars(Int32) SqlDataRecord.GetSqlChars(Int32) Method

定义

获取序号所指定的列的值,其形式为 SqlCharsGets the value for the column specified by the ordinal as a SqlChars.

public:
 virtual System::Data::SqlTypes::SqlChars ^ GetSqlChars(int ordinal);
public virtual System.Data.SqlTypes.SqlChars GetSqlChars (int ordinal);
abstract member GetSqlChars : int -> System.Data.SqlTypes.SqlChars
override this.GetSqlChars : int -> System.Data.SqlTypes.SqlChars
Public Overridable Function GetSqlChars (ordinal As Integer) As SqlChars

参数

ordinal
Int32 Int32 Int32 Int32

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

返回

SqlChars 形式的列值。The column value as a SqlChars.

异常

ordinal 小于 0 或大于列数(即 FieldCount)。The ordinal is less than 0 or greater than the number of columns (that is, FieldCount).

适用于