SqlDataReader.GetSqlString(Int32) Method

Definition

Gets the value of the specified column as a SqlString.

public virtual System.Data.SqlTypes.SqlString GetSqlString (int i);

Parameters

i
Int32

The zero-based column ordinal.

Returns

The value of the column expressed as a SqlString.

Remarks

No conversions are performed; therefore, the data retrieved must already be a string, or an exception is generated.

Applies to