Class EntityPermission
Represents an entity permission (defined on the user group and derived to retrieve permissions for a given user)
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public class EntityPermission : IEquatable<EntityPermission>
Constructors
EntityPermission(Int32, Int32, String[])
Declaration
public EntityPermission(int groupId, int entityId, string[] assignedPermissions)
Parameters
Type |
Name |
Description |
System.Int32 |
groupId |
|
System.Int32 |
entityId |
|
System.String[] |
assignedPermissions |
|
EntityPermission(Int32, Int32, String[], Boolean)
Declaration
public EntityPermission(int groupId, int entityId, string[] assignedPermissions, bool isDefaultPermissions)
Parameters
Type |
Name |
Description |
System.Int32 |
groupId |
|
System.Int32 |
entityId |
|
System.String[] |
assignedPermissions |
|
System.Boolean |
isDefaultPermissions |
|
Properties
AssignedPermissions
The assigned permissions for the user/entity combo
Declaration
public string[] AssignedPermissions { get; }
Property Value
Type |
Description |
System.String[] |
|
EntityId
Declaration
public int EntityId { get; }
Property Value
Type |
Description |
System.Int32 |
|
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 |
|
UserGroupId
Declaration
public int UserGroupId { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(EntityPermission)
Declaration
public bool Equals(EntityPermission other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|