Table of Contents

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

level PagePermissionLevels
PagePermissionLevels

Properties

Count

public int Count { get; }

Property Value

int

EveryonePermission

Gets or sets EveryonePermission
public PagePermissionAccess EveryonePermission { get; set; }

Property Value

PagePermissionAccess
PagePermissionAccess

HasDeniedRestrictions

Shows if collection has any denied restrictions
public bool HasDeniedRestrictions { get; }

Property Value

bool

IsReadOnly

public bool IsReadOnly { get; }

Property Value

bool

this[int]

Gets or sets collection item
public PagePermissionAccess this[int userID] { get; set; }

Parameters

userID int
User identifier

Property Value

PagePermissionAccess
PagePermissionAccess

Keys

Gets a collection containing the keys
public ICollection<int> Keys { get; }

Property Value

ICollection<int>

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

bool

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

IEnumerator<KeyValuePair<int, PagePermissionAccess>>

Remove(KeyValuePair<int, PagePermissionAccess>)

public bool Remove(KeyValuePair<int, PagePermissionAccess> item)

Parameters

item KeyValuePair<int, PagePermissionAccess>

Returns

bool
To top