This topic has not yet been rated - Rate this topic

DataException Class

July 26, 2012

The exception that is thrown by local database operations that result in an error.

System.Object
  System.Exception
    System.SystemException
      System.Data.DataException

Namespace:  System.Data
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
[CLSCompliantAttribute(true)]
public class DataException : SystemException

The DataException type exposes the following members.

  NameDescription
Public methodDataException()Initializes a new instance of the DataException class.
Public methodDataException(String)Initializes a new instance of the DataException class with the specified error message.
Public methodDataException(String, Exception)Initializes a new instance of the DataException class with the specified error message and a reference to the inner exception that is the cause of this exception.
Top
  NameDescription
Public propertyData (Inherited from Exception.)
Protected propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessage (Inherited from Exception.)
Public propertyStackTrace (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 methodGetType (Inherited from Exception.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Exception.)
Top

Windows Phone OS

Supported in: 7.1

Windows Phone

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.