Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
dataReader
Type: System.Data.IDataReaderThe IDataReader object.
command
Type: System.Data.IDbCommandThe 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.