UnhandledExceptionEventArgs.Message Property

Definition

Gets the message string as passed by the originating unhandled exception.

public:
 property Platform::String ^ Message { Platform::String ^ get(); };
winrt::hstring Message();
public string Message { get; }
var string = unhandledExceptionEventArgs.message;
Public ReadOnly Property Message As String

Property Value

String

Platform::String

winrt::hstring

The message string, which may be useful for debugging.

Remarks

The message is coming from info that's propagated by the original system or runtime app error. The message is not guaranteed to be an exact match to the original error message (as seen in native stacks or output windows). For more info on error propagation and exception handling techniques, see Exception Handling (C# Programming Guide) and Remarks in UnhandledException.

Applies to

See also