Condividi tramite


SqlCeException Members

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

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

Public Properties

  Name Description
Public property Data  Gets a collection of key/value pairs that provide additional user-defined information about the exception.(inherited from Exception)
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 Compact Edition.
Public property HelpLink  Gets or sets a link to the help file associated with this exception.(inherited from Exception)
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 Compact Edition Errors" topic in the Troubleshooting section of SQL Server Compact Edition 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)
Public property TargetSite  Gets the method that throws the current exception.(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. (inherited from Object)
Public method GetObjectData  When overridden in a derived class, sets the SerializationInfo with information about the exception. (inherited from Exception)
Public method Supported by the .NET Compact Framework GetType  Gets the runtime type of the current instance. (inherited from Exception)
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. Creates and returns a string representation of the current exception.

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
SqlCeErrorCollection