Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class AnonymousRole

Implementation of the Anonymous virtual role.

Inheritance
System.Object
AnonymousRole
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.Framework.dll
Version: 11.20.7
Syntax
[ServiceConfiguration]
public class AnonymousRole : VirtualRoleProviderBase
Remarks

A user that is not authenticated will be a member of the Anonymous role.

Constructors

AnonymousRole()

Declaration
public AnonymousRole()

Properties

Name

Gets or sets the name of the Virtual Role

Declaration
public override string Name { get; set; }
Property Value
Type Description
System.String
Overrides

RoleName

Gets or sets the default name of this virtual role.

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

This value is set by the initialization engine to reflect the configuration of this role.

This name may differ in different instances of this class, only use this name to get the default role name.

Methods

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