Share via


IDbCommand Members

Include Protected Members
Include Inherited Members

Represents a statement that is executed while an open connection to a data source exists.

The IDbCommand type exposes the following members.

Methods

  Name Description
Public method Cancel() Attempts to cancel the execution of an IDbCommand.
Public method CreateParameter() Creates a new instance of an IDataParameter object.
Public method Dispose() (Inherited from IDisposable.)
Public method ExecuteReader(CommandBehavior) Executes the CommandText against the Connection and builds an IDataReader.

Top

Properties

  Name Description
Public property CommandText Gets or sets the text command to run against the data source.
Public property CommandTimeout Gets or sets the wait time before terminating the attempt to execute a command and generating an error.
Public property CommandType Indicates or specifies how the CommandText property is interpreted (as text, a stored procedure, etc.).
Public property Parameters Gets the IDataParameterCollection.
Public property Transaction Gets or sets the transaction in which the Command object of a SQL Server Reporting Services data provider executes.

Top