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() _
)
'使用
Dim dataReader As IDataReader
Dim command As IDbCommand
Dim parameters As DataParameter()
Dim instance As New AdoDotNetDataReader(dataReader, _
command, parameters)
public AdoDotNetDataReader(
IDataReader dataReader,
IDbCommand command,
DataParameter[] parameters
)
public:
AdoDotNetDataReader(
IDataReader^ dataReader,
IDbCommand^ command,
array<DataParameter^>^ parameters
)
public function AdoDotNetDataReader(
dataReader : IDataReader,
command : IDbCommand,
parameters : DataParameter[]
)
Parameters
dataReader
Type: System.Data.IDataReaderThe IDataReader object.
command
Type: System.Data.IDbCommandThe IDbCommandobject.
parameters
Type: []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.
Permissions
- 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.