Class ApplicationRole
- Namespace
- Kentico.Membership
- Assembly
- Kentico.Membership.dll
Representation of application member role identity.
public class ApplicationRole : IdentityRole<int>
- Inheritance
-
objectIdentityRole<int>ApplicationRole
- Extension Methods
Constructors
ApplicationRole()
Creates empty role.
public ApplicationRole()
ApplicationRole(MemberRoleInfo)
Creates a new instance of ApplicationRole based on MemberRoleInfo.
public ApplicationRole(MemberRoleInfo memberRoleInfo)
Parameters
memberRoleInfoMemberRoleInfoMember role info.
Exceptions
- ArgumentNullException
memberRoleInfois null.
Properties
Description
Gets or sets the role description.
public string Description { get; set; }
Property Value
- string
DisplayName
Gets or sets the role display name.
public string DisplayName { get; set; }
Property Value
- string
Methods
MapFromMemberRoleInfo(MemberRoleInfo)
Maps MemberRoleInfo properties to the ApplicationRole instance.
public virtual void MapFromMemberRoleInfo(MemberRoleInfo source)
Parameters
sourceMemberRoleInfoSource object.
Exceptions
- ArgumentNullException
sourceis null.
MapToMemberRoleInfo(MemberRoleInfo)
Maps ApplicationRole properties to the MemberRoleInfo instance.
public virtual void MapToMemberRoleInfo(MemberRoleInfo target)
Parameters
targetMemberRoleInfoTarget object.
Exceptions
- ArgumentNullException
targetis null.