DbException Constructor (String, Int32)
Collapse the table of content
Expand the table of content

DbException Constructor (String, Int32)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

protected DbException(
	string message,
	int errorCode
)

Parameters

message
Type: System.String
The message that describes the error.
errorCode
Type: System.Int32
The HRESULT of the error.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft