SqlDataSourceStatusEventArgs.Exception Property

Gets a wrapper for any exceptions thrown by the database during a data operation.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public Exception Exception { get; }

Property Value

Type: System.Exception
An Exception that wraps any exceptions thrown by the database in its InnerException property.

The Exception property does not represent the actual exception thrown by the database operation. You can access the thrown exception using the InnerException property.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft