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 | |
---|---|---|
![]() |
ConnectionString | Overridden. Gets or sets the string used to open a database. |
![]() |
ConnectionTimeout | Overridden. Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error. |
![]() |
Container | (inherited from Component ) |
![]() |
Database | Overridden. Gets the name of the current database or the database to be used when a connection is open. |
![]() |
DatabaseIdentifier | Gets the unique identifier of the current database while synchronizing. |
![]() |
DataSource | Overridden. Gets the file name of the data source. |
![]() |
ServerVersion | Overridden. Returns the database version number as a string. |
![]() |
Site | (inherited from Component ) |
![]() |
State | Overridden. Gets the current state of the connection. |
Top
Protected Properties
Name | Description | |
---|---|---|
![]() |
CanRaiseEvents | (inherited from Component ) |
![]() |
DesignMode | (inherited from Component ) |
![]() |
Events | (inherited from Component ) |
Top
Public Methods
(see also Protected Methods )
Name | Description | |
---|---|---|
![]() |
BeginTransaction | Overloaded. Begins a database transaction. |
![]() |
ChangeDatabase | Overridden. Changes the current database for an open SqlCeConnection. |
![]() |
Close | Overridden. Closes the connection to the data source. This is the preferred method of closing any open connection. |
![]() |
CreateCommand | Creates and returns a SqlCeCommand object associated with the SqlCeConnection. |
![]() |
CreateObjRef | (inherited from MarshalByRefObject ) |
![]() |
Dispose | Overloaded. |
![]() |
EnlistTransaction | Overridden. Enlist in the specified System.Transactions.Transaction. |
![]() |
Equals | Overloaded. (inherited from Object ) |
![]() |
GetDatabaseInfo | Returns a set of Key Value pairs with information about locale, encryption mode, and case-sensitivity setting of the connected database. |
![]() |
GetHashCode | (inherited from Object ) |
![]() |
GetLifetimeService | (inherited from MarshalByRefObject ) |
![]() |
GetSchema | Overloaded. (inherited from DbConnection ) |
![]() |
GetType | (inherited from Object ) |
![]() |
InitializeLifetimeService | (inherited from MarshalByRefObject ) |
![]() |
Open | Overridden. Opens a database connection with the property settings specified by the ConnectionString. |
![]() ![]() |
ReferenceEquals | (inherited from Object ) |
![]() |
ToString | (inherited from Component ) |
Top
Protected Methods
Name | Description | |
---|---|---|
![]() |
BeginDbTransaction | (inherited from DbConnection ) |
![]() |
CreateDbCommand | (inherited from DbConnection ) |
![]() |
Dispose | Overloaded. (inherited from Component ) |
![]() |
Finalize | (inherited from Component ) |
![]() |
GetService | (inherited from Component ) |
![]() |
MemberwiseClone | Overloaded. (inherited from MarshalByRefObject ) |
![]() |
OnStateChange | (inherited from DbConnection ) |
Top
Public Events
Name | Description | |
---|---|---|
![]() |
Disposed | (inherited from Component ) |
![]() |
FlushFailure | Occurs when the background flush fails. |
![]() |
InfoMessage | Occurs when the .NET Compact Framework Data Provider for SQL Server sends a warning or an informational message. |
![]() |
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