Visual Guard Class Library Documentation

VGSecurityManager.VGSecurityErrorEventHandler Event

Occurs when Visual Guard loads security actions and a type are unknown or when Visual Guard sets the security of an object and an exception occurs.

public static event VGSecurityErrorEventHandler SecurityError;

Event Data

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

Property Description
Continue Gets or sets a value indicating if the exception must ignore or thrown.
Exception Gets or sets an exception generated by Visual Guard.
Principal Gets the VGIPrincipal representing the current user.

Remarks

The event handler receives an argument of type VGSecurityErrorEventArgs containing data related to this event. The SecurityError event allows a user to determine whether or not the operation should continue after the error occurs.

See Also

VGSecurityManager Class | Novalys.VisualGuard.Security Namespace