GetString method

Description

Identifies the value of the specified column as a string.

Syntax

string GetString( int ordinal )

Parameters

ordinal: An ordinal number indicating the column from which the value is obtained. The numbering is zero-based.

Return Value

The value of the specified column.

Implements

IDataRecord.GetString

Usage

No conversions are performed, so the data retrieved must already be a string.

Call AseDataReader.IsDBNull to check for null values before calling this method.

See also

“IsDBNull method”.