November Happy Hour will be moved to Thursday December 5th.

Class AccessControlEntry

Defines an entry in a AccessControlList.

Inheritance
System.Object
AccessControlEntry
Implements
System.IEquatable<AccessControlEntry>
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class AccessControlEntry : Object, IEquatable<AccessControlEntry>

Constructors

AccessControlEntry(RawACE)

Initializes a new instance of the AccessControlEntry class.

Declaration
public AccessControlEntry(RawACE rawAce)
Parameters
Type Name Description
RawACE rawAce

The raw ACE.

Remarks

Will use the EntityType to determine if it is a Role or User.

AccessControlEntry(String, AccessLevel)

Initializes a new instance of the AccessControlEntry class.

Declaration
public AccessControlEntry(string name, AccessLevel access)
Parameters
Type Name Description
System.String name

The name of the role.

AccessLevel access

The access level.

Remarks

Note that this constructor will create the ACE as a Role ACE.

AccessControlEntry(String, AccessLevel, SecurityEntityType)

Initializes a new instance of the AccessControlEntry class.

Declaration
public AccessControlEntry(string name, AccessLevel access, SecurityEntityType entityType)
Parameters
Type Name Description
System.String name

The name of the user or role.

AccessLevel access

The access level.

SecurityEntityType entityType

Type of the entity (User or Role).

Properties

Access

Gets the access level.

Declaration
public AccessLevel Access { get; }
Property Value
Type Description
AccessLevel

The access level.

Remarks

The access level for this entry.

EntityType

Gets the type of the entry.

Declaration
public SecurityEntityType EntityType { get; }
Property Value
Type Description
SecurityEntityType

The type of the entry.

Remarks

We only support Users or Roles.

Name

Gets the name of the entry for this ACE.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

The name.

Remarks

This is the name of a user or a role that this Access Control Entry applies to.

Methods

Equals(AccessControlEntry)

Indicates whether the current AccessControlEntry instance is equal to another AccessControlEntry instance.

Declaration
public virtual bool Equals(AccessControlEntry other)
Parameters
Type Name Description
AccessControlEntry other

An AccessControlEntry to compare with this instance.

Returns
Type Description
System.Boolean

true if the current instance is equal to the other parameter; otherwise, false.

Implements

System.IEquatable<>

Extension Methods