'Declaration Public Event ErrorDisplaying As EventHandler(Of ErrorDisplayingEventArgs)
public event EventHandler<ErrorDisplayingEventArgs> ErrorDisplaying
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.
Property | Description |
---|---|
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. |
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.
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