Export (0) Print
Expand All

SqlCeError Class

Collects information relevant to a warning or error returned by the data source. This class cannot be inherited.

System.Object
  System.Data.SqlServerCe.SqlCeError

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

[<SealedAttribute>]
[<SerializableAttribute>]
type SqlCeError =  class end

The SqlCeError type exposes the following members.

  NameDescription
Public propertyErrorParametersGets the last three error parameters. Error parameters are used by SQL Server Compact to provide additional details about an error.
Public propertyHResultReturns an HRESULT value that identifies the type of error.
Public propertyMessageGets the text describing the error.
Public propertyNativeErrorGets the native error number of the SqlCeError. For more information about these errors, see "SQL Server Compact Errors" in the Troubleshooting section of SQL Server Compact Books Online.
Public propertyNumericErrorParametersGets the first three error parameters. Error parameters are used by SQL Server Compact to provide additional details about an error.
Public propertySourceGets the name of the provider that generated the error.
Top

  NameDescription
Public methodEquals (inherited from Object)
Protected methodFinalize (inherited from Object)
Public methodGetHashCode (inherited from Object)
Public methodGetType (inherited from Object)
Protected methodMemberwiseClone (inherited from Object)
Public methodToStringGets the complete text of the error message. (Overrides Object.ToString().)
Top

An instance of SqlCeError is created by the System.Data.SqlServerCe managed provider when an error occurs. The SqlCeErrorCollection contains one or more instances of SqlCeError.

The following example shows a typical use of SqlCeError.

No code example is currently available or this language may not be supported.

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