Click or drag to resize

VGPrincipalPermissionAttribute Class

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

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
[SerializableAttribute]
public sealed class VGPrincipalPermissionAttribute : CodeAccessSecurityAttribute

The VGPrincipalPermissionAttribute type exposes the following members.

Constructors
  NameDescription
Public methodVGPrincipalPermissionAttribute
Initializes a new instance of the VGPrincipalPermissionAttribute class with the specified SecurityAction.
Top
Properties
  NameDescription
Public propertyAction
Gets or sets a security action.
(Inherited from SecurityAttribute.)
Public propertyAuthenticated
Gets or sets a value indicating whether the current principal has been authenticated by Visual Guard.
Public propertyName
Gets or sets the fullname of the permission or the name of the role.
Public propertyRepositoryId
Gets or sets the Visual Guard unique identifier of the item (role or permission).
Public propertyType
Specifies the type of item for which the current principal is a member.
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Public propertyUnrestricted
Gets or sets a value indicating whether full (unrestricted) permission to the resource protected by the attribute is declared.
(Inherited from SecurityAttribute.)
Top
Methods
  NameDescription
Public methodCreatePermission
Creates and returns a new VGPrincipalPermission.
(Overrides SecurityAttributeCreatePermission.)
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDefaultAttribute
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public methodMatch
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
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.
See Also