Class PermissionRole
Map a permission to a virtual role
Inheritance
System.Object
PermissionRole
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class PermissionRole : VirtualRoleProviderBase
Constructors
PermissionRole()
Declaration
public PermissionRole()
Properties
Permission
The permission to check for
Declaration
public PermissionType Permission { get; set; }
Property Value
Type | Description |
---|---|
PermissionType |
Methods
Initialize(String, NameValueCollection)
Declaration
public override void Initialize(string name, NameValueCollection config)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Collections.Specialized.NameValueCollection | config |
IsInVirtualRole(IPrincipal, Object)
Declaration
public override bool IsInVirtualRole(IPrincipal principal, object context)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Principal.IPrincipal | principal | |
System.Object | context |
Returns
Type | Description |
---|---|
System.Boolean |