Assembly: EPiServer (in EPiServer.dll) Version: 11.5.1.0 (11.5.1.0)
C# |
---|
public class AccessAttribute : Attribute |
Defines the ACL list for a typed ContentType.
Name | Summary | Status |
---|---|---|
AccessAttribute Constructor | Initializes a new instance of the AccessAttribute class. | public |
Name | Summary | Status |
---|---|---|
Access | Gets the access level. | public |
NameSeparator | Gets or sets the characters used to separate the names for the users, roles, and visitor groups. Default value is ",". | public |
Roles | Gets the names of the roles that has the access level | public |
Users | Gets the names of the users that has the access level | public |
VisitorGroups | Gets the names of the visitor groups that has the access level | public |
This attribute only has effect if it is paired with the ContentTypeAttribute. The values from this attribute are used to create the ACL list on the ContentType object. Access rights can be set for Users, Roles and Visitor groups.
Refer to "Attributes" and "Pages, Page Types and Page Templates" under "Content" in the Developer Guide for more information and examples.
Here is an example on how you can set access on your page type using the Access attribute.
![]() | |
---|---|