SqlCeConnection Members

Represents an open connection to a SQL Server Compact 3.5 SP1 data source.

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

Public Constructors

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

Top

Public Properties

(see also Protected Properties )

  Name Description
ze4yb054.pubproperty(en-us,VS.90).gif ConnectionString Overridden. Gets or sets the string used to open a database.
ze4yb054.pubproperty(en-us,VS.90).gif ConnectionTimeout Overridden. Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.
ze4yb054.pubproperty(en-us,VS.90).gif Container  (inherited from Component )
ze4yb054.pubproperty(en-us,VS.90).gif Database Overridden. Gets the name of the current database or the database to be used when a connection is open.
ze4yb054.pubproperty(en-us,VS.90).gif DatabaseIdentifier Gets the unique identifier of the current database while synchronizing.
ze4yb054.pubproperty(en-us,VS.90).gif DataSource Overridden. Gets the file name of the data source.
ze4yb054.pubproperty(en-us,VS.90).gif ServerVersion Overridden. Returns the database version number as a string.
ze4yb054.pubproperty(en-us,VS.90).gif Site  (inherited from Component )
ze4yb054.pubproperty(en-us,VS.90).gif State Overridden. Gets the current state of the connection.

Top

Protected Properties

  Name Description
ze4yb054.protproperty(en-us,VS.90).gif CanRaiseEvents  (inherited from Component )
ze4yb054.protproperty(en-us,VS.90).gif DesignMode  (inherited from Component )
ze4yb054.protproperty(en-us,VS.90).gif Events  (inherited from Component )

Top

Public Methods

(see also Protected Methods )

  Name Description
ze4yb054.pubmethod(en-us,VS.90).gif BeginTransaction Overloaded. Begins a database transaction.
ze4yb054.pubmethod(en-us,VS.90).gif ChangeDatabase Overridden. Changes the current database for an open SqlCeConnection.
ze4yb054.pubmethod(en-us,VS.90).gif Close Overridden. Closes the connection to the data source. This is the preferred method of closing any open connection.
ze4yb054.pubmethod(en-us,VS.90).gif CreateCommand Creates and returns a SqlCeCommand object associated with the SqlCeConnection.
ze4yb054.pubmethod(en-us,VS.90).gif CreateObjRef  (inherited from MarshalByRefObject )
ze4yb054.pubmethod(en-us,VS.90).gif Dispose Overloaded.  
ze4yb054.pubmethod(en-us,VS.90).gif EnlistTransaction Overridden. Enlist in the specified System.Transactions.Transaction.
ze4yb054.pubmethod(en-us,VS.90).gif Equals  Overloaded. (inherited from Object )
ze4yb054.pubmethod(en-us,VS.90).gif GetDatabaseInfo Returns a set of Key Value pairs with information about locale, encryption mode, and case-sensitivity setting of the connected database.
ze4yb054.pubmethod(en-us,VS.90).gif GetHashCode  (inherited from Object )
ze4yb054.pubmethod(en-us,VS.90).gif GetLifetimeService  (inherited from MarshalByRefObject )
ze4yb054.pubmethod(en-us,VS.90).gif GetSchema  Overloaded. (inherited from DbConnection )
ze4yb054.pubmethod(en-us,VS.90).gif GetType  (inherited from Object )
ze4yb054.pubmethod(en-us,VS.90).gif InitializeLifetimeService  (inherited from MarshalByRefObject )
ze4yb054.pubmethod(en-us,VS.90).gif Open Overridden. Opens a database connection with the property settings specified by the ConnectionString.
ze4yb054.pubmethod(en-us,VS.90).gif ze4yb054.static(en-us,VS.90).gif ReferenceEquals  (inherited from Object )
ze4yb054.pubmethod(en-us,VS.90).gif ToString  (inherited from Component )

Top

Protected Methods

  Name Description
ze4yb054.protmethod(en-us,VS.90).gif BeginDbTransaction  (inherited from DbConnection )
ze4yb054.protmethod(en-us,VS.90).gif CreateDbCommand  (inherited from DbConnection )
ze4yb054.protmethod(en-us,VS.90).gif Dispose  Overloaded. (inherited from Component )
ze4yb054.protmethod(en-us,VS.90).gif Finalize  (inherited from Component )
ze4yb054.protmethod(en-us,VS.90).gif GetService  (inherited from Component )
ze4yb054.protmethod(en-us,VS.90).gif MemberwiseClone  Overloaded. (inherited from MarshalByRefObject )
ze4yb054.protmethod(en-us,VS.90).gif OnStateChange  (inherited from DbConnection )

Top

Public Events

  Name Description
ze4yb054.pubevent(en-us,VS.90).gif Disposed  (inherited from Component )
ze4yb054.pubevent(en-us,VS.90).gif FlushFailure Occurs when the background flush fails.
ze4yb054.pubevent(en-us,VS.90).gif InfoMessage Occurs when the .NET Compact Framework Data Provider for SQL Server sends a warning or an informational message.
ze4yb054.pubevent(en-us,VS.90).gif StateChange Overridden. Occurs when the state of the connection changes.Obsolete.

Top

Explicit Interface Implementations

  Name Description
System.Data.IDbConnection.BeginTransaction  Overloaded. (inherited from DbConnection )
System.Data.IDbConnection.CreateCommand  (inherited from DbConnection )

Top

See Also

Reference

SqlCeConnection Class
System.Data.SqlServerCe Namespace
SqlCeDataAdapter
SqlCeCommand Class