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.

Namespace: Novalys.VisualGuard.Security
Assembly: Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2016.0.105.16 (2016.0.105.16)

Syntax

C#
public bool UseAutomaticInterception { get; set; }
Visual Basic
Public Property UseAutomaticInterception As Boolean
	Get
	Set

Property Value

Type: Boolean

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(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

See Also