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.

System.Object
   System.Exception
      System.SystemException
         System.Data.SqlServerCe.SqlCeException

NotInheritable Public Class SqlCeException
   Inherits SystemException
[C#]
public sealed class SqlCeException : SystemException
[C++]
public __gc __sealed class SqlCeException : public SystemException
[JScript]
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.

Remarks

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.

Requirements

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