This documentation is archived and is not being maintained.

SqlCeException Class

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

The exception that is thrown when the underlying provider returns a warning or error from a SQL Server CE data source. This class cannot be inherited.

For a list of all members of this type, see SqlCeException Members.


[Visual Basic]
NotInheritable Public Class SqlCeException
   Inherits SystemException
public sealed class SqlCeException : SystemException
public __gc __sealed class SqlCeException : public SystemException
public class SqlCeException extends SystemException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


This class is created whenever the .NET Compact Framework Data Provider for SQL Server CE encounters an error generated from within the SQL Server CE Engine. (Other errors are thrown as standard common language runtime exceptions.) SqlCeException always contains at least one instance of SqlCeError.


Namespace: System.Data.SqlServerCe

Platforms: .NET Compact Framework

Assembly: System.Data.Sqlserverce (in System.Data.Sqlserverce.dll)

See Also

SqlCeException Members | System.Data.SqlServerCe Namespace | SqlCeError | SqlCeErrorCollection