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

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: 8.11.0
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