Click or drag to resize

VGRole Class

Exposes and updates role information in the Visual Guard repository.
Inheritance Hierarchy
SystemObject
  Novalys.VisualGuard.Security.MembershipVGRole

Namespace:  Novalys.VisualGuard.Security.Membership
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
[SerializableAttribute]
public sealed class VGRole : VGIMembershipObject, 
	VGIDocumentationMembershipObject, VGIAuditInformation, VGIMatrixSupported

The VGRole type exposes the following members.

Properties
  NameDescription
Public propertyApplicationId
Gets the unique identifier of the application of the role
Public propertyCanBeGrantedToGroup
Gets or sets whether this role can be granted to group or not.
Public propertyCanBeGrantedToUser
Gets or sets whether this role can be granted to user or not.
Public propertyComment
Gets or sets a short description of the role.
Public propertyGrantedPermissions
Gets Granted permissions to role.
Public propertyId
Return the ID of role
Public propertyIsAnonymous
Gets a boolean value indicating whether the role is an anonymous role
Public propertyIsBuiltIn
Gets a boolean value indicating whether the role is a built-in role and cannot be modified or deleted
Public propertyIsDefault
Gets a boolean value indicating whether the role is an default role for a current application
Public propertyIsMembershipManagerRole
Return true if this role is Membership Role
Public propertyIsSharedRole
Gets a boolean value indicating whether the role is a shared role
Public propertyItemGuid
Gets or sets profileAttribute Value by attribute's Id.
Public propertyItemString
Gets or sets profileAttribute Value by attribute's propertyName.
Public propertyLastModification
Return the last modification date (Server Time)
Public propertyLastModificationDate
Gets or sets the date and time when the role was last modified.
Public propertyLastModificationLT
Return the last modification date (Lcoal Time)
Public propertyName
Gets or sets the name of the role.
Public propertyPermissionSet Obsolete.
Gets or sets the permission set granted to the role.
Public propertyPermissionSets
Gets permission set list granted to the role.
Public propertyRepositoryId
Gets the unique identifier from the repository for the role.
Public propertyRoleId
Gets a VGRoleIdof role
Public propertyType
Gets entityType
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from 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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue(Guid)
Gets profileattribute Value by attributeId
Public methodGetValue(String)
Gets profileAttribute Value by propertyName
Public methodGetValueT(Guid)
Gets profileattribute Value by attributeId
Public methodGetValueT(String)
Gets profileAttribute Value by propertyName
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetValue(Guid, Object)
Sets profileattribute Value by attributeId
Public methodSetValue(String, Object)
Sets profileattribute Value by propertyname
Public methodSetValueT(Guid, T)
Sets profileattribute Value by attributeId
Public methodSetValueT(String, T)
Sets profileattribute Value by propertyname
Public methodToString
Returns the name of the role.
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
VGRole check if both VGrole are equals
Public operatorStatic memberInequality
VGRole check if both VGrole are NOT equals
Top
Remarks
The VGRole object is used to represent a role in the Visual Guard repository. It exposes information about the role such as the id, name, description and permission sets, and provides functionality for the role such as change the list of members.

A VGRole object is returned by the GetRole(String) and CreateRole(String, String, Guid) methods or as part of a VGRoleCollection returned by the GetAllRoles, GetRolesForUser(String) methods.

A VGRole object is required by the UpdateRole(VGRole) method when you want to update the information for an existing role.

See Also