Class EntityPermissionCollection
A System.Collections.Generic.HashSet<T> of EntityPermission
Namespace: Umbraco.Core.Models.Membership
Assembly: Umbraco.Core.dll
Syntax
public class EntityPermissionCollection : HashSet<EntityPermission>, ISerializable, IDeserializationCallback, ISet<EntityPermission>, ICollection<EntityPermission>, IReadOnlyCollection<EntityPermission>, IEnumerable<EntityPermission>, IEnumerable
Constructors
View SourceEntityPermissionCollection()
Declaration
public EntityPermissionCollection()
EntityPermissionCollection(IEnumerable<EntityPermission>)
Declaration
public EntityPermissionCollection(IEnumerable<EntityPermission> collection)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<EntityPermission> | collection |
Methods
View SourceGetAllPermissions()
Returns the aggregate permissions in the permission set for all nodes
Declaration
public IEnumerable<string> GetAllPermissions()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Remarks
This value is only calculated once
GetAllPermissions(Int32)
Returns the aggregate permissions in the permission set for a single node
Declaration
public IEnumerable<string> GetAllPermissions(int entityId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | entityId |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Remarks
This value is only calculated once per node