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

Class RequiredAccessAttribute

Defines the Acccess Levels on the typed TabDefinition.

Inheritance
System.Object
RequiredAccessAttribute
Namespace: EPiServer.DataAnnotations
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public sealed class RequiredAccessAttribute : Attribute
Remarks

This attribute has only effect on the the fields on the type that has been marked with GroupDefinitionsAttribute. The values from this attribute are used to create the Access Level on the TabDefinition object.

Examples

Here is an example on how you can set access on your TabDefinition using the RequiredAccess attribute.

    [GroupDefinitions]
    public static class GroupNames
    {
        [Display(Name = "GroupNameDisplayName", Order = 100)]
        [RequiredAccess(Access = EPiServer.Security.AccessLevel.Read | EPiServer.Security.AccessLevel.Create)]
        public static String Group = "GroupName";
    }

Constructors

RequiredAccessAttribute()

Create in instance of RequiredAccessAttribute with Read access level

Declaration
public RequiredAccessAttribute()

RequiredAccessAttribute(AccessLevel)

Create in instance of RequiredAccessAttribute with access level

Declaration
public RequiredAccessAttribute(AccessLevel access)
Parameters
Type Name Description
AccessLevel access

The access level AccessLevel

Properties

Access

Gets the access level.

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

Extension Methods

See Also