Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides an implementation of the DataReader class based on the IVsDataReader and IVsDataReaderDescriptor interfaces. This implementation uses the ADO.NET DbDataReader object.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Data.Framework.DataReader
Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetReader
Namespace: Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Class AdoDotNetReader _
Inherits DataReader
public class AdoDotNetReader : DataReader
public ref class AdoDotNetReader : public DataReader
type AdoDotNetReader =
class
inherit DataReader
end
public class AdoDotNetReader extends DataReader
The AdoDotNetReader type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
AdoDotNetReader(DbDataReader) | Initializes a parameterized instance of the AdoDotNetReader class with an ADO.NET data reader object. |
![]() |
AdoDotNetReader(DbDataReader, DbCommand) | Initializes a parameterized instance of the AdoDotNetReader class with an ADO.NET data reader object and a command object. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
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. (Overrides DataReader.HasDescriptor.) |
![]() |
IsClosed | Gets a value indicating whether the specified data reader instance is closed. (Overrides DataReader.IsClosed.) |
![]() |
ItemCount | Gets the number of items in the current block of data. (Overrides DataReader.ItemCount.) |
![]() |
Status | Gets a numerical status code returned by the method currently providing data to the data reader. (Overrides DataReader.Status.) |
![]() |
UnderlyingReader | Gets the underlying DbDataReader object instance that is used by this class. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Close | Closes the current DbDataReader object instance. (Overrides DataReader.Close().) |
![]() |
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.) |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Finalizes the current DataReader instance. (Inherited from DataReader.) |
![]() |
GetBytes(String, array<Byte[], Int32, Int32) | Retrieves a specified number of bytes of raw binary data. (Inherited from DataReader.) |
![]() |
GetBytes(Int32, array<Byte[], Int32, Int32) | Retrieves a specified number of bytes of binary data. (Overrides DataReader.GetBytes(Int32, array<Byte[], Int32, Int32).) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetItem(Int32) | Retrieves an object instance representing the retrievable item, as determined by an index in the current block of data. (Overrides DataReader.GetItem(Int32).) |
![]() |
GetItem(String) | Retrieves an object instance representing the retrievable item as specified by name. (Overrides DataReader.GetItem(String).) |
![]() |
GetItemIndex | Retrieves the index of the item for the given item name, such as the index of a column for a given column name. (Overrides DataReader.GetItemIndex(String).) |
![]() |
GetItemMaxLength | Retrieves the maximum length, in characters, of data items at the specified index. (Overrides DataReader.GetItemMaxLength(Int32).) |
![]() |
GetItemName | Retrieves the name assigned to the data item at the specified index, if any. (Overrides DataReader.GetItemName(Int32).) |
![]() |
GetItemType(Int32) | Retrieves the data type of a data item, or items, at the specified index for the default format Default. (Inherited from DataReader.) |
![]() |
GetItemType(Int32, DataItemTypeFormat) | Retrieves the data type of a data item, or items, at the specified index in a specified format. (Overrides DataReader.GetItemType(Int32, DataItemTypeFormat).) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
IsNullItem(String) | Indicates whether the value of the given data item is unspecified, that is, nulla null reference (Nothing in Visual Basic). (Inherited from DataReader.) |
![]() |
IsNullItem(Int32) | Indicates whether the value of the data item at the specified index is unspecified, that is, nulla null reference (Nothing in Visual Basic). (Overrides DataReader.IsNullItem(Int32).) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
NextResult | Advances the data reader to the next result if the reader contains multiple results. (Overrides DataReader.NextResult().) |
![]() |
Read | Advances the reader to the next block of data if the reader contains more than one block. (Overrides DataReader.Read().) |
![]() |
Terminate | Terminates the data reader immediately, without necessarily returning all of the data or setting output parameters. (Overrides DataReader.Terminate().) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.