Overload | Description |
---|---|
Item(String) | Gets the value of the specified field (column) as an Object. |
Item(Int32) | Gets the value of the specified field (column) as an Object. |
Overload | Description |
---|---|
Item(String) | Gets the value of the specified field (column) as an Object. |
Item(Int32) | Gets the value of the specified field (column) as an Object. |
Exception | Description |
---|---|
System.IndexOutOfRangeException | No column with the specified name was found. |
System.InvalidOperationException | CommandBehavior is set to SchemaOnly, or there is no data for the row or column, or preceding columns are no longer accessible. |
System.ObjectDisposedException | The TdDataReader is closed. |
TdException | The Advanced SQL Engine returned an error or .NET Data Provider for Teradata detected an error. |
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.
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019