Share via


SqlDataRecord.GetSqlChars(Int32) Method

Definition

Gets 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

Parameters

ordinal
Int32

The zero-based ordinal of the column.

Returns

The column value as a SqlChars.

Exceptions

The ordinal is less than 0 or greater than the number of columns (that is, FieldCount).

There is a type mismatch.

Applies to