Share via


SqlCeException Members

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

The following tables list the members exposed by the SqlCeException type.

Public Properties

  Name Description
Public property Supported by the .NET Compact Framework Errors Gets a collection of one or more SqlCeError objects that contain detailed information about exceptions generated by the .NET Compact Framework Data Provider for SQL Server Mobile.
Public property Supported by the .NET Compact Framework HResult Gets the HRESULT value of the exception. This value is the same as the value of HResult for the first instance of SqlCeError in the SqlCeErrorCollection for the exception.
Public property Supported by the .NET Compact Framework InnerException  Gets the Exception instance that caused the current exception.(Inherited from Exception.)
Public property Supported by the .NET Compact Framework Message Overridden. Gets the text describing the first instance of SqlCeError in the SqlCeErrorCollection for this exception.
Public property Supported by the .NET Compact Framework NativeError Gets the native error number of the first SqlCeError in the SqlCeErrorCollection. For more information about the error, see the "SQL Server Mobile Errors" topic in the Troubleshooting section of SQL Server Mobile Books Online.
Public property Supported by the .NET Compact Framework Source Gets the name of the OLE DB provider that generated the error.
Public property Supported by the .NET Compact Framework StackTrace  Gets a string representation of the frames on the call stack at the time the current exception was thrown.(Inherited from Exception.)

Top

Public Methods

(see also Protected Methods )

  Name Description
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetBaseException  When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Inherited from Exception.)
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework ToString Overridden.  

Top

Protected Methods

  Name Description
Protected method Supported by the .NET Compact Framework Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)

Top

See Also

Reference

SqlCeException Class
System.Data.SqlServerCe Namespace
SqlCeError Class
SqlCeErrorCollection Class