Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Class PermissionTypeRepository

A in-memory repository of all registered permission types

Inheritance
System.Object
PermissionTypeRepository
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public abstract class PermissionTypeRepository

Constructors

PermissionTypeRepository()

Declaration
protected PermissionTypeRepository()

Methods

List()

List all registered permission types

Declaration
public abstract IEnumerable<PermissionType> List()
Returns
Type Description
System.Collections.Generic.IEnumerable<PermissionType>

A list of permission types

Register(PermissionType)

Register a permission type

Declaration
public abstract bool Register(PermissionType type)
Parameters
Type Name Description
PermissionType type

The permission type

Returns
Type Description
System.Boolean

true if the type was registered successfully; false if type already exists.

Unregister(PermissionType)

Register a permission type

Declaration
public abstract bool Unregister(PermissionType type)
Parameters
Type Name Description
PermissionType type

The permission type

Returns
Type Description
System.Boolean

true if the type was unregistered successfully; false if type was not found.

Extension Methods