A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Class IPrincipalExtensions

Inheritance
System.Object
IPrincipalExtensions
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.Personalization.VisitorGroups
Assembly: EPiServer.ApplicationModules.dll
Version: 11.20.7
Syntax
public static class IPrincipalExtensions

Methods

IsInRole(IPrincipal, String, SecurityEntityType)

Declaration
public static bool IsInRole(this IPrincipal principal, string role, SecurityEntityType type)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal
System.String role
SecurityEntityType type
Returns
Type Description
System.Boolean