VGSecurityManagerAllowAutomaticInterception Property |
Namespace: Novalys.VisualGuard.Security
Exception | 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. |
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(Object) 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(Object) method for each secured class.
For more information, see How Visual Guard secures an application