ExceptionMessageBox.Message Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the Exception that contains the message to display.
public:
property Exception ^ Message { Exception ^ get(); void set(Exception ^ value); };
public Exception Message { get; set; }
member this.Message : Exception with get, set
Public Property Message As Exception
Property Value
An Exception object.
Remarks
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.