Version

DocumentLoadError Event

Occurs when an exception is thrown while attempting to load a document.
Syntax
'Declaration
 
Public Event DocumentLoadError As EventHandler(Of DocumentLoadErrorEventArgs)
public event EventHandler<DocumentLoadErrorEventArgs> DocumentLoadError
Event Data

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

PropertyDescription
Description A description of the error (read-only)
Exception Returns the exception that was thrown during the load (read-only).
RethrowException Gets/sets whether the exception will be re-thrown.
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