ExceptionMessageBox.Message Property


Gets or sets the Exception that contains the message to display.

Namespace:   Microsoft.SqlServer.MessageBox
Assembly:  Microsoft.ExceptionMessageBox (in Microsoft.ExceptionMessageBox.dll)

public Exception Message { get; set; }

Property Value

Type: System.Exception

An Exception object.

The Message, Source, Data, and HelpLink properties of Exception are used for the top-level message, and the InnerException property is used for lower-level properties.

The default value is null.

To display the exception message box without handling an exception, create an instance of the Exception object, define the properties to be displayed to the user in the message box, and assign the Exception to the Message property.

Return to top