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.
Namespace:  Microsoft.VisualStudio.Data.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
声明
Public Sub New ( _
    dataReader As IDataReader, _
    command As IDbCommand, _
    parameters As DataParameter() _
)
public AdoDotNetDataReader(
    IDataReader dataReader,
    IDbCommand command,
    DataParameter[] parameters
)
public:
AdoDotNetDataReader(
    IDataReader^ dataReader, 
    IDbCommand^ command, 
    array<DataParameter^>^ parameters
)
new : 
        dataReader:IDataReader * 
        command:IDbCommand * 
        parameters:DataParameter[] -> AdoDotNetDataReader
public function AdoDotNetDataReader(
    dataReader : IDataReader, 
    command : IDbCommand, 
    parameters : DataParameter[]
)
Parameters
- dataReader
Type: System.Data.IDataReader
The IDataReader object. 
- command
Type: System.Data.IDbCommand
The IDbCommandobject. 
- parameters
Type: array<Microsoft.VisualStudio.Data.DataParameter[]
Parameter array, if any. 
Remarks
If the command and parameters are specified, the class makes certain that a call to the Terminate method first calls the Cancel method on the command; further, output parameters are updated on calling the Close method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.