Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
OleDbCommand Class
 OleDbCommand Members

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.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.

  NameDescription
Public methodOleDbCommandOverloaded. Initializes a new instance of the OleDbCommand class.
Top
  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 methodEquals Determines 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 methodFinalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public methodGetHashCode Serves 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 methodGetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public methodGetType Gets 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 methodToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Top
  NameDescription
Protected propertyCanRaiseEvents Gets 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 propertyContainer Gets 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 propertyDesignMode Gets 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 propertyEvents Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertyParametersGets the OleDbParameterCollection.
Public propertySite Gets 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
  NameDescription
Public eventDisposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Top
  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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker