Send feedback on this topic.
Teradata.Client.Provider
Item Property (TdDataReader)



Teradata.Client.Provider Namespace > TdDataReader Class : Item Property
Gets the value of the specified field (column) as an Object.
Overload List
OverloadDescription
Gets the value of the specified field (column) as an Object.  
Gets the value of the specified field (column) as an Object.  
Exceptions
ExceptionDescription
No column with the specified name was found.
CommandBehavior is set to SchemaOnly, or there is no data for the row or column, or preceding columns are no longer accessible.
The TdDataReader is closed.
The Advanced SQL Engine returned an error or .NET Data Provider for Teradata detected an error.
Remarks
Item returns a System.Object that is the root of all types. It is used to retrieve any Teradata data type. The .NET Data Provider for Teradata maps the Teradata data types to .NET Framework types and returns an Object reference.

Item is the most flexible field retrieval method, but is also the slowest field retrieval method. It is strongly recommended to use the other strongly typed field retrieval methods (for example, GetInt32).

This method does not throw an exception for null database fields. It returns an instance of DBNull.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdDataReader Class
TdDataReader Members