Share via


AdoDotNetDataReader Constructor (IDataReader, IDbCommand, array<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.

Namespace:  Microsoft.VisualStudio.Data.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
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

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

See Also

Reference

AdoDotNetDataReader Class

AdoDotNetDataReader Overload

Microsoft.VisualStudio.Data.AdoDotNet Namespace

DataReader