SqlCeCommand Members

Represents an SQL statement to execute against a data source.

The following tables list the members exposed by the SqlCeCommand type.

Public Constructors

  Name Description
SqlCeCommand Overloaded. Initializes a new instance of the SqlCeCommand class.

Top

Public Properties

(see also Protected Properties )

  Name Description
cab1zes4.pubproperty(en-us,VS.90).gif CommandText Overridden. Gets or sets an SQL statement to execute at the data source.
cab1zes4.pubproperty(en-us,VS.90).gif CommandTimeout Overridden. Gets or sets the wait time before terminating the attempt to execute a command and generating an error.
cab1zes4.pubproperty(en-us,VS.90).gif CommandType Overridden. Gets or sets a value indicating how the CommandText property is interpreted.
cab1zes4.pubproperty(en-us,VS.90).gif Connection Gets or sets the SqlCeConnection used by this instance of the SqlCeCommand.
cab1zes4.pubproperty(en-us,VS.90).gif Container  (inherited from Component )
cab1zes4.pubproperty(en-us,VS.90).gif DesignTimeVisible Overridden. Get always returns false; set always throws a NotSupportedException.
cab1zes4.pubproperty(en-us,VS.90).gif IndexName Specifies the index to be opened.
cab1zes4.pubproperty(en-us,VS.90).gif Parameters Gets the SqlCeParameterCollection.
cab1zes4.pubproperty(en-us,VS.90).gif Site  (inherited from Component )
cab1zes4.pubproperty(en-us,VS.90).gif Transaction Gets or sets the transaction in which the SqlCeCommand executes.
cab1zes4.pubproperty(en-us,VS.90).gif UpdatedRowSource Overridden. Gets or sets how command results are applied to the DataRow when used by the Update method of the DbDataAdapter. This property should not be used with the .NET Compact Framework Data Provider for SQL Server Compact 3.5 SP1.

Top

Protected Properties

  Name Description
cab1zes4.protproperty(en-us,VS.90).gif CanRaiseEvents  (inherited from Component )
cab1zes4.protproperty(en-us,VS.90).gif DbConnection  (inherited from DbCommand )
cab1zes4.protproperty(en-us,VS.90).gif DbParameterCollection  (inherited from DbCommand )
cab1zes4.protproperty(en-us,VS.90).gif DbTransaction  (inherited from DbCommand )
cab1zes4.protproperty(en-us,VS.90).gif DesignMode  (inherited from Component )
cab1zes4.protproperty(en-us,VS.90).gif Events  (inherited from Component )

Top

Public Methods

(see also Protected Methods )

  Name Description
cab1zes4.pubmethod(en-us,VS.90).gif Cancel Overridden. Attempts to cancel the execution of a SqlCeCommand.
cab1zes4.pubmethod(en-us,VS.90).gif CreateObjRef  (inherited from MarshalByRefObject )
cab1zes4.pubmethod(en-us,VS.90).gif CreateParameter Creates a new instance of a SqlCeParameter object.
cab1zes4.pubmethod(en-us,VS.90).gif Dispose  Overloaded. (inherited from Component )
cab1zes4.pubmethod(en-us,VS.90).gif Equals  Overloaded. (inherited from Object )
cab1zes4.pubmethod(en-us,VS.90).gif ExecuteNonQuery Overridden. Executes an SQL statement against the SqlCeConnection and returns the number of rows affected.
cab1zes4.pubmethod(en-us,VS.90).gif ExecuteReader Overloaded. Sends the CommandText to the Connection and builds a SqlCeDataReader.
cab1zes4.pubmethod(en-us,VS.90).gif ExecuteResultSet Overloaded. Sends the CommandText to the Connection and builds a SqlCeResultSet.
cab1zes4.pubmethod(en-us,VS.90).gif ExecuteScalar Overridden. Executes the query and returns the first column of the first row in the result set that is returned by the query. Extra columns or rows are ignored.
cab1zes4.pubmethod(en-us,VS.90).gif GetHashCode  (inherited from Object )
cab1zes4.pubmethod(en-us,VS.90).gif GetLifetimeService  (inherited from MarshalByRefObject )
cab1zes4.pubmethod(en-us,VS.90).gif GetType  (inherited from Object )
cab1zes4.pubmethod(en-us,VS.90).gif InitializeLifetimeService  (inherited from MarshalByRefObject )
cab1zes4.pubmethod(en-us,VS.90).gif Prepare Overridden. Creates a prepared (or compiled) version of the command on the data source.
cab1zes4.pubmethod(en-us,VS.90).gif cab1zes4.static(en-us,VS.90).gif ReferenceEquals  (inherited from Object )
cab1zes4.pubmethod(en-us,VS.90).gif SetRange Restricts the set of rows that will be read by the SqlCeDataReader.
cab1zes4.pubmethod(en-us,VS.90).gif ToString  (inherited from Component )

Top

Protected Methods

  Name Description
cab1zes4.protmethod(en-us,VS.90).gif CreateDbParameter  (inherited from DbCommand )
cab1zes4.protmethod(en-us,VS.90).gif Dispose  Overloaded. (inherited from Component )
cab1zes4.protmethod(en-us,VS.90).gif ExecuteDbDataReader  (inherited from DbCommand )
cab1zes4.protmethod(en-us,VS.90).gif Finalize  (inherited from Component )
cab1zes4.protmethod(en-us,VS.90).gif GetService  (inherited from Component )
cab1zes4.protmethod(en-us,VS.90).gif MemberwiseClone  Overloaded. (inherited from MarshalByRefObject )

Top

Public Events

  Name Description
cab1zes4.pubevent(en-us,VS.90).gif Disposed  (inherited from Component )

Top

Explicit Interface Implementations

  Name Description
System.Data.IDbCommand.CreateParameter  (inherited from DbCommand )
System.Data.IDbCommand.ExecuteReader  Overloaded. (inherited from DbCommand )
System.ICloneable.Clone  
System.Data.IDbCommand.Connection  (inherited from DbCommand )
System.Data.IDbCommand.Parameters  (inherited from DbCommand )
System.Data.IDbCommand.Transaction  (inherited from DbCommand )

Top

See Also

Reference

SqlCeCommand Class
System.Data.SqlServerCe Namespace
SqlCeDataAdapter
SqlCeConnection