Version

ErrorDisplaying Event

Raised when an error is to be displayed to the end user.
Syntax
'Declaration
 
Public Event ErrorDisplaying As EventHandler(Of ErrorDisplayingEventArgs)
public event EventHandler<ErrorDisplayingEventArgs> ErrorDisplaying
Event Data

The event handler receives an argument of type ErrorDisplayingEventArgs containing data related to this event. The following ErrorDisplayingEventArgs properties provide information specific to this event.

PropertyDescription
Cancel Specifies whether to cancel the operation.
DisplayType Returns an enumerating indicating the type of error ui that will be displayed if the event is not cancelled.
Error Returns an object that contains the error information.
Remarks

This event is raised after an error has occurred and that error is about to be displayed to the end user. The type of display is indicated by the ErrorDisplayingEventArgs.DisplayType. The ErrorDisplayingEventArgs.Cancel property may be set to true to prevent the error from being displayed.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also