Share via


SqlCeConnection Members

Represents an open connection to a  data source.

The SqlCeConnection type exposes the following members.

Constructors

  Name Description
Public method SqlCeConnection() () () () Initializes a new instance of the SqlCeConnection class.
Public method SqlCeConnection(String) Initializes a new instance of the SqlCeConnection class with the specified connection string.

Top

Methods

  Name Description
Protected method BeginDbTransaction(IsolationLevel) (inherited from DbConnection)
Public method BeginTransaction() () () () Begins a database transaction.
Public method BeginTransaction(IsolationLevel) Begins a database transaction with the current IsolationLevel value.
Public method ChangeDatabase(String) Changes the current database for an open SqlCeConnection. (Overrides DbConnection. . :: . .ChangeDatabase(String).)
Public method Close() () () () Closes the connection to the data source. This is the preferred method of closing any open connection. (Overrides DbConnection. . :: . .Close() () () ().)
Public method CreateCommand() () () () Creates and returns a SqlCeCommand object associated with the SqlCeConnection.
Protected method CreateDbCommand() () () () (inherited from DbConnection)
Public method CreateObjRef(Type) (inherited from MarshalByRefObject)
Public method Dispose() () () () Releases all resources used by the current instance of the SqlCeConnection class.
Protected method Dispose(Boolean) (inherited from Component)
Public method EnlistTransaction(Transaction) (inherited from DbConnection)
Public method EnlistTransaction(Transaction) Enlists in the specified Transaction.
Public method Equals(Object) (inherited from Object)
Protected method Finalize() () () () (inherited from Component)
Public method GetDatabaseInfo() () () () Returns a set of Key Value pairs with information about locale, encryption mode, and case-sensitivity setting of the connected database.
Public method GetHashCode() () () () (inherited from Object)
Public method GetLifetimeService() () () () (inherited from MarshalByRefObject)
Public method GetSchema() () () () (inherited from DbConnection)
Public method GetSchema(String) (inherited from DbConnection)
Public method GetSchema(String, array<String> [] () [] []) (inherited from DbConnection)
Protected method GetService(Type) (inherited from Component)
Public method GetType() () () () (inherited from Object)
Public method InitializeLifetimeService() () () () (inherited from MarshalByRefObject)
Protected method MemberwiseClone() () () () (inherited from Object)
Protected method MemberwiseClone(Boolean) (inherited from MarshalByRefObject)
Protected method OnStateChange(StateChangeEventArgs) (inherited from DbConnection)
Public method Open() () () () Opens a database connection with the property settings specified by the ConnectionString. (Overrides DbConnection. . :: . .Open() () () ().)
Public method ToString() () () () (inherited from Component)

Top

Properties

  Name Description
Protected property CanRaiseEvents (inherited from Component)
Public property ConnectionString Gets or sets the string used to open a database. (Overrides DbConnection. . :: . .ConnectionString.)
Public property ConnectionTimeout Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error. (Overrides DbConnection. . :: . .ConnectionTimeout.)
Public property Container (inherited from Component)
Public property Database Gets the name of the current database or the database to be used when a connection is open. (Overrides DbConnection. . :: . .Database.)
Public property DatabaseIdentifier Gets the unique identifier of the current database while synchronizing.
Public property DataSource Gets the file name of the data source. (Overrides DbConnection. . :: . .DataSource.)
Protected property DbProviderFactory (inherited from DbConnection)
Protected property DesignMode (inherited from Component)
Protected property Events (inherited from Component)
Public property ServerVersion Returns the database version number as a string. (Overrides DbConnection. . :: . .ServerVersion.)
Public property Site (inherited from Component)
Public property State Gets the current state of the connection. (Overrides DbConnection. . :: . .State.)

Top

Events

  Name Description
Public event Disposed (inherited from Component)
Public event FlushFailure Occurs when the background flush fails.
Public event InfoMessage Occurs when the .NET Compact Framework Data Provider for sends a warning or an informational message.
Public event StateChange Obsolete. Occurs when the state of the connection changes. (Overrides DbConnection. . :: . .StateChange.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IDbConnection. . :: . .BeginTransaction() () () () (inherited from DbConnection)
Explicit interface implemetationPrivate method IDbConnection. . :: . .BeginTransaction(IsolationLevel) (inherited from DbConnection)
Explicit interface implemetationPrivate method IDbConnection. . :: . .CreateCommand() () () () (inherited from DbConnection)

Top

See Also

Reference

SqlCeConnection Class

System.Data.SqlServerCe Namespace