Export (0) Print
Expand All

SqlCeInvalidDatabaseFormatException Class

The exception thrown when the underlying provider returns an error from a Microsoft SQL Server Compact data source when SQL Server Compact attempts to open a database file of an older or newer version.

System.Object
  System.Exception
    System.SystemException
      System.Runtime.InteropServices.ExternalException
        System.Data.Common.DbException
          System.Data.SqlServerCe.SqlCeException
            System.Data.SqlServerCe.SqlCeInvalidDatabaseFormatException

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

[SerializableAttribute]
public class SqlCeInvalidDatabaseFormatException : SqlCeException

The SqlCeInvalidDatabaseFormatException type exposes the following members.

  NameDescription
Protected methodSqlCeInvalidDatabaseFormatExceptionConstructor that helps in serialization.
Top

  NameDescription
Public propertyData (inherited from Exception)
Public propertyErrorCode (inherited from ExternalException)
Public propertyErrorsGets 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. (inherited from SqlCeException)
Public propertyHelpLink (inherited from Exception)
Public propertyHResultGets 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. (inherited from SqlCeException)
Public propertyInnerException (inherited from Exception)
Public propertyMessageGets the text describing the first instance of SqlCeError in the SqlCeErrorCollection for this exception. (inherited from SqlCeException)
Public propertyNativeErrorGets the native error number of the first SqlCeError in the SqlCeErrorCollection. For more information about the error, see the "SQL Server Compact Errors" topic in the Troubleshooting section of SQL Server Compact Books Online. (inherited from SqlCeException)
Public propertySourceGets the name of the OLE DB provider that generated the error. (inherited from SqlCeException)
Public propertyStackTrace (inherited from Exception)
Public propertyTargetSite (inherited from Exception)
Top

  NameDescription
Public methodEquals (inherited from Object)
Protected methodFinalize (inherited from Object)
Public methodGetBaseException (inherited from Exception)
Public methodGetHashCode (inherited from Object)
Public methodGetObjectDataSecurity Critical. Populates a SerializationInfo with the data needed to serialize the object. (Overrides SqlCeException.GetObjectData(SerializationInfo, StreamingContext).)
Public methodGetType (inherited from Exception)
Protected methodMemberwiseClone (inherited from Object)
Public methodToString (inherited from Exception)
Top

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