AdoDotNetReader 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.
Represents an implementation of the IVsDataReader and IVsDataReaderDescriptor interfaces using the ADO .NET DbDataReader object.
public ref class AdoDotNetReader : Microsoft::VisualStudio::Data::Framework::DataReader
public class AdoDotNetReader : Microsoft.VisualStudio.Data.Framework.DataReader
type AdoDotNetReader = class
inherit DataReader
Public Class AdoDotNetReader
Inherits DataReader
- Inheritance
Constructors
AdoDotNetReader(DbDataReader, DbCommand) |
Initializes a parameterized instance of the AdoDotNetReader class with an ADO.NET data reader object and a command object. |
AdoDotNetReader(DbDataReader) |
Initializes a parameterized instance of the AdoDotNetReader class with an ADO.NET data reader object. |
Properties
Descriptor |
Gets information that describes the data from a data source. (Inherited from DataReader) |
HasDescriptor |
Gets a value indicating whether the data parameter exposes its IVsDataReaderDescriptor implementation through the Descriptor property. |
IsClosed |
Gets a value indicating whether the specified data reader instance is closed. |
ItemCount |
Gets the number of items in the current block of data. |
Status |
Gets a numerical status code returned by the method currently providing data to the data reader. |
UnderlyingReader |
Gets the underlying DbDataReader object instance that is used by this class. |
Methods
Close() |
Closes the current DbDataReader 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 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. |
GetBytes(String, Byte[], Int32, Int32) |
Retrieves a specified number of bytes of raw binary data. (Inherited from DataReader) |
GetItem(Int32) |
Retrieves an object instance representing the retrievable item, as determined by an index in the current block of data. |
GetItem(String) |
Retrieves an object instance representing the retrievable item as specified by name. |
GetItemIndex(String) |
Retrieves the index of the item for the given item name, such as the index of a column for a given column 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) |
Retrieves the data type of a data item, or items, at the specified index in a specified format. |
GetItemType(Int32) |
Retrieves the data type of a data item, or items, at the specified index for the default format Default. (Inherited from DataReader) |
IsNullItem(Int32) |
Indicates whether the value of the data item at the specified index is unspecified, that is, null. |
IsNullItem(String) |
Indicates whether the value of the given data item is unspecified, that is, null. (Inherited from DataReader) |
NextResult() |
Advances the data reader to the next result if the reader contains multiple results. |
Read() |
Advances the reader to the next block of data if the reader contains more than one block. |
Terminate() |
Terminates the data reader immediately, without necessarily returning all of the data or setting output parameters. |