This documentation is archived and is not being maintained.
IDataReader Members
Visual Studio 2008
Provides a means of reading one or more forward-only streams of result sets obtained by executing a command at a data source, and is implemented by .NET Framework data providers that access relational databases.
The IDataReader type exposes the following members.
| Name | Description | |
|---|---|---|
|
Close | Closes the IDataReader Object. |
|
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) |
|
GetBoolean | Gets the value of the specified column as a Boolean. (Inherited from IDataRecord.) |
|
GetByte | Gets the 8-bit unsigned integer value of the specified column. (Inherited from IDataRecord.) |
|
GetBytes | Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset. (Inherited from IDataRecord.) |
|
GetChar | Gets the character value of the specified column. (Inherited from IDataRecord.) |
|
GetChars | Reads a stream of characters from the specified column offset into the buffer as an array, starting at the given buffer offset. (Inherited from IDataRecord.) |
|
GetData | Returns an IDataReader for the specified column ordinal. (Inherited from IDataRecord.) |
|
GetDataTypeName | Gets the data type information for the specified field. (Inherited from IDataRecord.) |
|
GetDateTime | Gets the date and time data value of the specified field. (Inherited from IDataRecord.) |
|
GetDecimal | Gets the fixed-position numeric value of the specified field. (Inherited from IDataRecord.) |
|
GetDouble | Gets the double-precision floating point number of the specified field. (Inherited from IDataRecord.) |
|
GetFieldType | Gets the Type information corresponding to the type of Object that would be returned from GetValue. (Inherited from IDataRecord.) |
|
GetFloat | Gets the single-precision floating point number of the specified field. (Inherited from IDataRecord.) |
|
GetGuid | Returns the GUID value of the specified field. (Inherited from IDataRecord.) |
|
GetInt16 | Gets the 16-bit signed integer value of the specified field. (Inherited from IDataRecord.) |
|
GetInt32 | Gets the 32-bit signed integer value of the specified field. (Inherited from IDataRecord.) |
|
GetInt64 | Gets the 64-bit signed integer value of the specified field. (Inherited from IDataRecord.) |
|
GetName | Gets the name for the field to find. (Inherited from IDataRecord.) |
|
GetOrdinal | Return the index of the named field. (Inherited from IDataRecord.) |
|
GetSchemaTable | Returns a DataTable that describes the column metadata of the IDataReader. |
|
GetString | Gets the string value of the specified field. (Inherited from IDataRecord.) |
|
GetValue | Return the value of the specified field. (Inherited from IDataRecord.) |
|
GetValues | Populates an array of objects with the column values of the current record. (Inherited from IDataRecord.) |
|
IsDBNull | Return whether the specified field is set to null. (Inherited from IDataRecord.) |
|
NextResult | Advances the data reader to the next result, when reading the results of batch SQL statements. |
|
Read | Advances the IDataReader to the next record. |
| Name | Description | |
|---|---|---|
|
Depth | Gets a value indicating the depth of nesting for the current row. |
|
FieldCount | Gets the number of columns in the current row. (Inherited from IDataRecord.) |
|
IsClosed | Gets a value indicating whether the data reader is closed. |
|
Item | Overloaded. Gets the specified column. |
|
RecordsAffected | Gets the number of rows changed, inserted, or deleted by execution of the SQL statement. |
Show: