This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.

Syntax

C# Copy imageCopy Code
                                  public class DataReader
Visual Basic (Declaration) Copy imageCopy Code
                                  Public Class DataReader

The type exposes the following members.

Public Constructors

  Name Description
Public method DataReader Overloaded.

Public Methods

  Name Description
Public method Close
Closes the IDataReader 0bject.
Public method Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public method Equals (Inherited from Object.)
Public method GetBoolean
Gets the value of the specified column as a Boolean.
Public method GetByte
Gets the 8-bit unsigned integer value of the specified column.
Public method GetBytes
Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.
Public method GetChar
Gets the character value of the specified column.
Public method GetChars
Reads a stream of characters from the specified column offset into the buffer as an array, starting at the given buffer offset.
Public method GetData
Gets an IDataReader to be used when the field points to more remote structured data.
Public method GetDataTypeName
Gets the data type information for the specified field.
Public method GetDateTime
Gets the date and time data value of the specified field.
Public method GetDecimal
Gets the fixed-position numeric value of the specified field.
Public method GetDouble
Gets the double-precision floating point number of the specified field.
Public method GetFieldType
Gets the Type information corresponding to the type of Object that would be returned from GetValue.
Public method GetFloat
Gets the single-precision floating point number of the specified field.
Public method GetGuid
Returns the GUID value of the specified field.
Public method GetHashCode (Inherited from Object.)
Public method GetInt16
Gets the 16-bit signed integer value of the specified field.
Public method GetInt32
Gets the 32-bit signed integer value of the specified field.
Public method GetInt64
Gets the 64-bit signed integer value of the specified field.
Public method GetName
Gets the name for the field to find.
Public method GetOrdinal
Return the index of the named field.
Public method GetSchemaTable
Returns a DataTable that describes the column metadata of the IDataReader.
Public method GetString
Gets the string value of the specified field.
Public method GetType (Inherited from Object.)
Public method GetValue
Return the value of the specified field.
Public method GetValues
Gets all the attribute fields in the collection for the current record.
Public method IsDBNull
Return whether the specified field is set to null.
Public method NextResult
Advances the data reader to the next result, when reading the results of batch SQL statements.
Public method Read
Advances the DataReader to the next record.
Public method ToString (Inherited from Object.)

Protected Methods

  Name Description
Protected method Finalize (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)

Public Properties

  Name Description
Public property BaseDataReader
Returns the underlying reader of the type IDataReader.
Public property CurrentRow
Returns the current row
Public property Depth
Gets a value indicating the depth of nesting for the current row.
Public property FieldCount
Gets the number of columns in the current row.
Public property History
Returns a list containing all the previous rows.
Public property IsClosed
Gets a value indicating whether the data reader is closed.
Public property IsLastRow
Returns true if the current row is the last row
Public property Item Overloaded.
Public property KeepHistory
Returns true if the DataReader keeps a history of read rows.
Public property NextRow
Returns the next row
Public property PreviousRow
Returns the previous row
Public property RecordsAffected
Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.
Public property RowNumber
Returns the row number of the current row (zero based).

See Also

Advanced