Class PermissionService

Service to query if a principal is assigned a specific permission

Inheritance
System.Object
PermissionService
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.Security
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public abstract class PermissionService

Constructors

PermissionService()

Declaration
protected PermissionService()

Methods

IsPermitted(IPrincipal, PermissionType)

Determines whether the specified principal has this permission.

Declaration
public abstract bool IsPermitted(IPrincipal principal, PermissionType type)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal

The principal

PermissionType type

The permission type

Returns
Type Description
System.Boolean

true if the specified principal is permitted; otherwise, false.

Extension Methods