.NET Framework Class Library
OleDbCommand Members

Represents an SQL statement or stored procedure to execute against a data source.

The OleDbCommand type exposes the following members.

Constructors

  NameDescription
Public methodOleDbCommandOverloaded. Initializes a new instance of the OleDbCommand class.
Top
Methods

  NameDescription
Public methodCancelTries to cancel the execution of an OleDbCommand. (Overrides DbCommand..::.Cancel()()().)
Public methodCloneCreates a new OleDbCommand object that is a copy of the current instance.
Protected methodCreateDbParameterCreates a new instance of a DbParameter object. (Inherited from DbCommand.)
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodCreateParameterCreates a new instance of an OleDbParameter object.
Public methodDisposeOverloaded. Releases the resources used by the Component.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodExecuteDbDataReaderExecutes the command text against the connection. (Inherited from DbCommand.)
Public methodExecuteNonQueryExecutes an SQL statement against the Connection and returns the number of rows affected. (Overrides DbCommand..::.ExecuteNonQuery()()().)
Public methodExecuteReaderOverloaded. Sends the CommandText to the Connection and builds an OleDbDataReader.
Public methodExecuteScalarExecutes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored. (Overrides DbCommand..::.ExecuteScalar()()().)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodMemberwiseCloneOverloaded.
Public methodPrepareCreates a prepared (or compiled) version of the command on the data source. (Overrides DbCommand..::.Prepare()()().)
Public methodResetCommandTimeoutResets the CommandTimeout property to the default value.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Top
Properties

  NameDescription
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event. (Inherited from Component.)
Public propertyCommandTextGets or sets the SQL statement or stored procedure to execute at the data source. (Overrides DbCommand..::.CommandText.)
Public propertyCommandTimeoutGets or sets the wait time before terminating an attempt to execute a command and generating an error. (Overrides DbCommand..::.CommandTimeout.)
Public propertyCommandTypeGets or sets a value that indicates how the CommandText property is interpreted. (Overrides DbCommand..::.CommandType.)
Public propertyConnectionGets or sets the OleDbConnection used by this instance of the OleDbCommand.
Public propertyContainerGets the IContainer that contains the Component. (Inherited from Component.)
Protected propertyDbConnectionGets or sets the DbConnection used by this DbCommand. (Inherited from DbCommand.)
Protected propertyDbParameterCollectionGets the collection of DbParameter objects. (Inherited from DbCommand.)
Protected propertyDbTransactionGets or sets the DbTransaction within which this DbCommand object executes. (Inherited from DbCommand.)
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public propertyDesignTimeVisibleGets or sets a value that indicates whether the command object should be visible in a customized Windows Forms Designer control. (Overrides DbCommand..::.DesignTimeVisible.)
Protected propertyEventsGets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertyParametersGets the OleDbParameterCollection.
Public propertySiteGets or sets the ISite of the Component. (Inherited from Component.)
Public propertyTransactionGets or sets the OleDbTransaction within which the OleDbCommand executes.
Public propertyUpdatedRowSourceGets or sets how command results are applied to the DataRow when used by the Update method of the OleDbDataAdapter. (Overrides DbCommand..::.UpdatedRowSource.)
Top
Events

  NameDescription
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodICloneable..::.CloneFor a description of this member, see ICloneable..::.Clone.
Explicit interface implemetationPrivate propertyIDbCommand..::.Connection (Inherited from DbCommand.)
Public methodCreateParameterOverloaded.
Public methodExecuteReaderOverloaded. For a description of this member, see IDbCommandExecuteReader()()().
Explicit interface implemetationPrivate propertyIDbCommand..::.Parameters (Inherited from DbCommand.)
Explicit interface implemetationPrivate propertyIDbCommand..::.Transaction (Inherited from DbCommand.)
Top
See Also

Reference

Tags :


Page view tracker