Class EntityPermissionSet
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Models.Membership
Assembly: Umbraco.Core.dll
Syntax
public class EntityPermissionSet
Constructors
View SourceEntityPermissionSet(Int32, EntityPermissionCollection)
Declaration
public EntityPermissionSet(int entityId, EntityPermissionCollection permissionsSet)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | entityId | |
EntityPermissionCollection | permissionsSet |
Properties
View SourceEntityId
The entity id with permissions assigned
Declaration
public virtual int EntityId { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PermissionsSet
Declaration
public EntityPermissionCollection PermissionsSet { get; }
Property Value
Type | Description |
---|---|
EntityPermissionCollection |
Methods
View SourceEmpty()
Returns an empty permission set
Declaration
public static EntityPermissionSet Empty()
Returns
Type | Description |
---|---|
EntityPermissionSet |
GetAllPermissions()
Returns the aggregate permissions in the permission set
Declaration
public IEnumerable<string> GetAllPermissions()
Returns
Type | Description |
---|---|
IEnumerable<System.String> |
Remarks
This value is only calculated once