Class PermissionCollection
- Namespace
- Dynamicweb.Security.UserManagement
- Assembly
- Dynamicweb.Security.dll
Represents permissions collection
public class PermissionCollection : ICollection<KeyValuePair<int, PagePermissionAccess>>, IEnumerable<KeyValuePair<int, PagePermissionAccess>>, IEnumerable
- Inheritance
-
PermissionCollection
- Implements
- Inherited Members
- Extension Methods
Constructors
PermissionCollection(PagePermissionLevels)
Creates new PagePermissionLevels-specific colelction
public PermissionCollection(PagePermissionLevels level)
Parameters
Properties
Count
public int Count { get; }
Property Value
EveryonePermission
Gets or sets EveryonePermission
public PagePermissionAccess EveryonePermission { get; set; }
Property Value
HasDeniedRestrictions
Shows if collection has any denied restrictions
public bool HasDeniedRestrictions { get; }
Property Value
IsReadOnly
public bool IsReadOnly { get; }
Property Value
this[int]
Gets or sets collection item
public PagePermissionAccess this[int userID] { get; set; }
Parameters
userID
int- User identifier
Property Value
Keys
Gets a collection containing the keys
public ICollection<int> Keys { get; }
Property Value
Methods
Add(KeyValuePair<int, PagePermissionAccess>)
public void Add(KeyValuePair<int, PagePermissionAccess> item)
Parameters
item
KeyValuePair<int, PagePermissionAccess>
Clear()
public void Clear()
Contains(KeyValuePair<int, PagePermissionAccess>)
public bool Contains(KeyValuePair<int, PagePermissionAccess> item)
Parameters
item
KeyValuePair<int, PagePermissionAccess>
Returns
CopyTo(KeyValuePair<int, PagePermissionAccess>[], int)
public void CopyTo(KeyValuePair<int, PagePermissionAccess>[] array, int arrayIndex)
Parameters
array
KeyValuePair<int, PagePermissionAccess>[]arrayIndex
int
GetEnumerator()
public IEnumerator<KeyValuePair<int, PagePermissionAccess>> GetEnumerator()
Returns
Remove(KeyValuePair<int, PagePermissionAccess>)
public bool Remove(KeyValuePair<int, PagePermissionAccess> item)
Parameters
item
KeyValuePair<int, PagePermissionAccess>