This documentation is archived and is not being maintained.
Represents an SQL statement that is executed while connected to a data source, and is implemented by .NET Framework data providers that access relational databases.
The IDbCommand type exposes the following members.
|Cancel||Attempts to cancels the execution of an IDbCommand.|
|CreateParameter||Creates a new instance of an IDbDataParameter object.|
|Dispose||Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)|
|ExecuteNonQuery||Executes an SQL statement against the Connection object of a .NET Framework data provider, and returns the number of rows affected.|
|ExecuteReader||Overloaded. Executes the CommandText against the Connection and builds an IDataReader.|
|ExecuteScalar||Executes the query, and returns the first column of the first row in the resultset returned by the query. Extra columns or rows are ignored.|
|Prepare||Creates a prepared (or compiled) version of the command on the data source.|
|CommandText||Gets or sets the text command to run against the data source.|
|CommandTimeout||Gets or sets the wait time before terminating the attempt to execute a command and generating an error.|
|CommandType||Indicates or specifies how the CommandText property is interpreted.|
|Connection||Gets or sets the IDbConnection used by this instance of the IDbCommand.|
|Parameters||Gets the IDataParameterCollection.|
|Transaction||Gets or sets the transaction within which the Command object of a .NET Framework data provider executes.|
|UpdatedRowSource||Gets or sets how command results are applied to the DataRow when used by the Update method of a DbDataAdapter.|