View Source
  Class EntityPermission
  
  Represents an entity permission (defined on the user group and derived to retrieve permissions for a given user)
    Inheritance
      System.Object
      
   
  
  Assembly: Umbraco.Core.dll
  Syntax
  
    public class EntityPermission : IEquatable<EntityPermission>
   
  Constructors
  
  
    View Source
  
  EntityPermission(Int32, Int32, ISet<String>)
  
  
  Declaration
  
    public EntityPermission(int groupId, int entityId, ISet<string> assignedPermissions)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int32 | groupId |  | 
      
        | System.Int32 | entityId |  | 
      
        | ISet<System.String> | assignedPermissions |  | 
    
  
  
    View Source
  
  EntityPermission(Int32, Int32, ISet<String>, Boolean)
  
  
  Declaration
  
    public EntityPermission(int groupId, int entityId, ISet<string> assignedPermissions, bool isDefaultPermissions)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Int32 | groupId |  | 
      
        | System.Int32 | entityId |  | 
      
        | ISet<System.String> | assignedPermissions |  | 
      
        | System.Boolean | isDefaultPermissions |  | 
    
  
  Properties
  
  
    View Source
  
  AssignedPermissions
  The assigned permissions for the user/entity combo
Declaration
  
    public ISet<string> AssignedPermissions { get; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | ISet<System.String> |  | 
    
  
  
    View Source
  
  EntityId
  
  
  Declaration
  
    public int EntityId { get; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Int32 |  | 
    
  
  
    View Source
  
  IsDefaultPermissions
  True if the permissions assigned to this object are the group's default permissions and not explicitly defined
permissions
Declaration
  
    public bool IsDefaultPermissions { get; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  
  
  
    View Source
  
  UserGroupId
  
  
  Declaration
  
    public int UserGroupId { get; }
   
  Property Value
  
    
      
        | Type | Description | 
    
    
      
        | System.Int32 |  | 
    
  
  Methods
  
  
    View Source
  
  Equals(Object)
  
  
  Declaration
  
    public override bool Equals(object obj)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | System.Object | obj |  | 
    
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  
    View Source
  
  Equals(EntityPermission)
  
  
  Declaration
  
    public bool Equals(EntityPermission other)
   
  Parameters
  
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Boolean |  | 
    
  
  
    View Source
  
  GetHashCode()
  
  
  Declaration
  
    public override int GetHashCode()
   
  Returns
  
    
      
        | Type | Description | 
    
    
      
        | System.Int32 |  |