AdoDotNetDataReader Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an implementation of the DataReader class using an implementation of the ADO.NET IDataReader interface.
public ref class AdoDotNetDataReader : Microsoft::VisualStudio::Data::DataReader
public class AdoDotNetDataReader : Microsoft.VisualStudio.Data.DataReader
type AdoDotNetDataReader = class
inherit DataReader
Public Class AdoDotNetDataReader
Inherits DataReader
- Inheritance
Constructors
AdoDotNetDataReader(IDataReader, IDbCommand, DataParameter[]) |
Class constructor. Initializes a parameterized instance of the AdoDotNetDataReader class with an implementation of the IDataReader interface and the command and/or parameters that produced the IDataReader. |
AdoDotNetDataReader(IDataReader) |
Class constructor. Initializes a parameterized instance of the AdoDotNetDataReader class with an implementation of the IDataReader interface. |
Properties
InnerDataReader |
Retrieves the underlying IDataReader object that is driving the current data reader. |
IsClosed |
Retrieves a Boolean value that indicates whether the specified data reader instance has been closed. |
ItemCount |
Retrieves the number of items in the current block of data. |
Status |
Retrieves a numerical status code returned by the method currently providing data to the data reader. |
Methods
Close() |
Closes the current IDataReader object instance. |
Dispose() |
Releases managed resources held for the current DataReader instance. (Inherited from DataReader) |
Dispose(Boolean) |
Cleans up resources associated with the current DataReader instance, both when the public Dispose() method is called and as well as when the object is finalized with a call to the Finalize() method. (Inherited from DataReader) |
GetBytes(Int32, Byte[], Int32, Int32) |
Retrieves a specified number of bytes of binary data. |
GetItem(Int32) |
Retrieves an object instance representing the retrievable item as determined by an index into the current block of data. |
GetItem(String) |
Retrieves an object instance representing the retrievable item as specified by name. |
GetItemMaxLength(Int32) |
Retrieves the maximum length, in characters, of data items at the specified index. |
GetItemName(Int32) |
Retrieves the name assigned to the data item at the specified index, if any. |
GetItemType(Int32, DataItemTypeFormat) |
Returns the data type of a data item, or items, at the specified index in a specified format. |
IsNullItem(Int32) |
Indicates whether the data item at the specified index is unspecified, that is, null. |
NextResult() |
Advances the data reader to the next result in cases where the reader contains multiple results. |
Read() |
Advances the reader to the next block of data in cases where the reader contains more than one block. |
Terminate() |
Terminates the data reader immediately, without necessarily returning all of the data nor setting output parameters. |