Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - .NET Programming » UltraLite .NET 1.0 API Reference » ULDataReader class

Item property Next Page

Item property


Returns the value of the specified named column in its native format. In C#, this property is the indexer for the ULDataReader class.

Syntax

Visual Basic

NotOverridable Public Readonly Property Item As Object _
Implements IDataRecord.Item

C#

public object Item {get;}

Parameters
Return value

The column value as the .NET type most appropriate for the column or DBNull if column is NULL.

Remarks

Note that in result sets, not all columns have names and not all column names are unique. If you are not using aliases, the name of a non-computed column is prefixed with the name of the table the column is from. For example, MyTable.ID is the name of the only column in the result set for the query "SELECT ID FROM MyTable".

When accessing columns multiple times, it is more efficient to access columns by column ID than by name.

This method is equivalent to:

dataReader.GetValue( dataReader.GetOrdinal( name ) )
Exceptions
Implements

[external link] IDataRecord.Item

See also