Try our conversational search powered by Generative AI!

Class CreatorRole

Handles access rights for the creator of a page

Inheritance
System.Object
CreatorRole
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class CreatorRole : VirtualRoleProviderBase

Constructors

CreatorRole()

Declaration
public CreatorRole()

Properties

RoleName

Gets the name of the role.

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

The name of the role.

Methods

Initialize(String, NameValueCollection)

Initializes CreatorRole by disabling EnableIsInRoleCache

Declaration
public override void Initialize(string name, NameValueCollection config)
Parameters
Type Name Description
System.String name

Name of the role

System.Collections.Specialized.NameValueCollection config

Configuration settings

IsInVirtualRole(IPrincipal, Object)

Determines whether the specified principal is a member of this role.

Declaration
public override bool IsInVirtualRole(IPrincipal principal, object context)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal

The principal.

System.Object context

The context.

Returns
Type Description
System.Boolean

true if the specified principal is in the virtual role; otherwise, false.

Overrides

Extension Methods