Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DbException Constructor

 

Initializes a new instance of the DbException class.

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

NameDescription
System_CAPS_protmethodDbException()

Initializes a new instance of the DbException class.

System_CAPS_protmethodDbException(SerializationInfo^, StreamingContext)

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

System_CAPS_protmethodDbException(String^)

Initializes a new instance of the DbException class with the specified error message.

System_CAPS_protmethodDbException(String^, Exception^)

Initializes a new instance of the DbException class with the specified error message and a reference to the inner exception that is the cause of this exception.

System_CAPS_protmethodDbException(String^, Int32)

Initializes a new instance of the DbException class with the specified error message and error code.

The DbException class is an abstract class used as the base class for provider-specific exception class implementations.

Return to top
Show:
© 2017 Microsoft