Click or drag to resize

VGPrincipalPermission Class

Allows checks against the current principal (see Principal) using the language constructs defined for both declarative and imperative security actions.
Inheritance Hierarchy
SystemObject
  Novalys.VisualGuard.SecurityVGPrincipalPermission

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
public sealed class VGPrincipalPermission : IPermission, 
	ISecurityEncodable, IUnrestrictedPermission

The VGPrincipalPermission type exposes the following members.

Constructors
  NameDescription
Public methodVGPrincipalPermission(PermissionState)
Initializes a new instance of the VGPrincipalPermission class with the specified PermissionState.
Public methodVGPrincipalPermission(Guid, VGPermissionType)
Initializes a new instance of the VGPrincipalPermission class for the specified role or permission.
Public methodVGPrincipalPermission(String, VGPermissionType)
Initializes a new instance of the VGPrincipalPermission class for the specified role or permission.
Public methodVGPrincipalPermission(Guid, VGPermissionType, Boolean)
Initializes a new instance of the VGPrincipalPermission class for the specified role or permission.
Public methodVGPrincipalPermission(String, VGPermissionType, Boolean)
Initializes a new instance of the VGPrincipalPermission class for the specified role or permission.
Top
Methods
  NameDescription
Public methodCopy
Creates and returns an identical copy of the current permission.
Public methodDemand
Determines at run time whether the current Visual Guard principal matches the principal specified by the current permission.
Public methodEquals
Determines whether the specified PrincipalPermission object is equal to the current PrincipalPermission.
(Overrides ObjectEquals(Object).)
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 methodFromXml
Reconstructs a permission with a specified state from an XML encoding.
Public methodGetHashCode
Gets a hash code for the PrincipalPermission object that is suitable for use in hashing algorithms and data structures such as a hash table.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIntersect
Creates and returns a permission that is the intersection of the current permission and the specified permission.
Public methodIsSubsetOf
Determines whether the current permission is a subset of the specified permission.
Public methodIsUnrestricted
Returns a value indicating whether the current permission is unrestricted.
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.)
Public methodToXml
Creates an XML encoding of the permission and its current state.
Public methodUnion
Creates a permission that is the union of the current permission and the specified permission.
Top
Remarks
This class can be used in place of the PrincipalPermission class and allows to check whether a Visual Guard permission or role is granted to the current Visual Guard principal.
See Also