Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataException Constructor

.NET Framework 1.1

Initializes a new instance of the DataException class.

Overload List

Initializes a new instance of the DataException class. This is the default constructor.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public DataException();
[C++] public: DataException();
[JScript] public function DataException();

Initializes a new instance of the DataException class with the specified string.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String)
[C#] public DataException(string);
[C++] public: DataException(String*);
[JScript] public function DataException(String);

Initializes a new instance of the DataException class with the specified serialization information and context.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected DataException(SerializationInfo, StreamingContext);
[C++] protected: DataException(SerializationInfo*, StreamingContext);
[JScript] protected function DataException(SerializationInfo, StreamingContext);

Initializes a new instance of the DataException class with the specified string and inner exception.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String, Exception)
[C#] public DataException(string, Exception);
[C++] public: DataException(String*, Exception*);
[JScript] public function DataException(String, Exception);

See Also

DataException Class | DataException Members | System.Data Namespace

Show:
© 2015 Microsoft