Allows security actions for VGPrincipalPermission to be applied to code using declarative security.

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

Syntax

C#
[SerializableAttribute]
public sealed class VGPrincipalPermissionAttribute : CodeAccessSecurityAttribute
Visual Basic
<SerializableAttribute>
Public NotInheritable Class VGPrincipalPermissionAttribute
	Inherits CodeAccessSecurityAttribute

Remarks

This class can be used in place of the PrincipalPermissionAttribute class and allows to check whether a Visual Guard permission or role is granted to the current Visual Guard principal.

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    System.Security.Permissions..::..SecurityAttribute
      System.Security.Permissions..::..CodeAccessSecurityAttribute
        Novalys.VisualGuard.Security..::..VGPrincipalPermissionAttribute

See Also