Gets or sets a boolean value indicating whether Visual Guard can use its automatic interception mechanism to intercept the instantication of Forms and automatically set the security to this instance.
This property must be set before loading the security of the user.
When this option is set to false, You have to call the SetSecurity method for all secured objects.
Automatic Interception in WinForm context requires SecurityPermission for operating whith infrastructure code and configuration of the remoting infrastructure. If you do not want to grant this permission to your application , you should set this option to false and call SetSecurity method for each secured class.
For more information, see How Visual Guard secures an application
Exception Type | Condition |
---|---|
InvalidOperationException | Unable to unload automatic interception. Some classes are already registered for interception. This method cannot be called after the security is loaded for a user and some security actions require automatic interception. |
VGSecurityManager Class | Novalys.VisualGuard.Security Namespace