Exception Properties

The Exception type exposes the following members.

Public property Data Gets a collection of key/value pairs that provide additional user-defined information about the exception.
Public property HelpLink Gets or sets a link to the help file associated with this exception.
Protected property HResult Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.
Public property InnerException Gets the Exception instance that caused the current exception.
Public property Message Gets a message that describes the current exception.
Public property Source Gets or sets the name of the application or the object that causes the error.
Public property StackTrace Gets a string representation of the immediate frames on the call stack.
Public property TargetSite Gets the method that throws the current exception.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft