Class AccessControlEntry
Defines an entry in a Access
Inheritance
Implements
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class AccessControlEntry : Object, IEquatable<AccessControlEntry>
Constructors
AccessControlEntry(RawACE)
Initializes a new instance of the Access
Declaration
public AccessControlEntry(RawACE rawAce)
Parameters
Type | Name | Description |
---|---|---|
Raw |
rawAce | The raw ACE. |
Remarks
Will use the Entity
AccessControlEntry(String, AccessLevel)
Initializes a new instance of the Access
Declaration
public AccessControlEntry(string name, AccessLevel access)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the role. |
Access |
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 Access
Declaration
public AccessControlEntry(string name, AccessLevel access, SecurityEntityType entityType)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the user or role. |
Access |
access | The access level. |
Security |
entityType | Type of the entity (User or Role). |
Properties
Access
Gets the access level.
Declaration
public AccessLevel Access { get; }
Property Value
Type | Description |
---|---|
Access |
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 |
---|---|
Security |
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. |
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 Access
Declaration
public virtual bool Equals(AccessControlEntry other)
Parameters
Type | Name | Description |
---|---|---|
Access |
other | An Access |
Returns
Type | Description |
---|---|
System. |
true if the current instance is equal to the |