Visual Guard Class Library Documentation

VGSecurityManager.AllowAutomaticInterception Property

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.

public static Boolean AllowAutomaticInterception {get; set;}

Remarks

By default, Visual Guard will intercept automatically the instanciation of class for which Visual Guard must apply security action. This interception is available only on classes derived from System.Windows.Forms.Form form WinForm application and System.Web.UI.Page or System.Web.UI.MasterPage for Web application.

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

Exceptions

Exception TypeCondition
InvalidOperationExceptionUnable 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.

See Also

VGSecurityManager Class | Novalys.VisualGuard.Security Namespace