Represents an open connection to a data source.
For a list of all members of this type, see SqlCeConnection Members.
[Visual Basic] NotInheritable Public Class SqlCeConnection Inherits MarshalByRefObject Implements IDbConnection, IDisposable [C#] public sealed class SqlCeConnection : MarshalByRefObject, IDbConnection, IDisposable [C++] public __gc __sealed class SqlCeConnection : public MarshalByRefObject, IDbConnection, IDisposable [JScript] public class SqlCeConnection extends MarshalByRefObject implements IDbConnection, IDisposable
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
A SqlCeConnection object represents a unique connection to a data source. When you create an instance of SqlCeConnection, all properties are set to their initial values. For a list of these values, see the SqlCeConnection constructor.
Although SQL Server CE only supports one connection at a time, multiple commands can share the same connection. This means that it is possible to have multiple instances of SqlCeDataReader open on the same connection. This behavior differs from that of System.Data.SqlClient.
Platforms: .NET Compact Framework
Assembly: System.Data.Sqlserverce (in System.Data.Sqlserverce.dll)