Table of Contents

Class ApplicationRole

Namespace
Kentico.Membership
Assembly
Kentico.Membership.dll

Representation of application member role identity.

public class ApplicationRole : IdentityRole<int>
Inheritance
object
IdentityRole<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

memberRoleInfo MemberRoleInfo

Member role info.

Exceptions

ArgumentNullException

memberRoleInfo is 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

source MemberRoleInfo

Source object.

Exceptions

ArgumentNullException

source is null.

MapToMemberRoleInfo(MemberRoleInfo)

Maps ApplicationRole properties to the MemberRoleInfo instance.

public virtual void MapToMemberRoleInfo(MemberRoleInfo target)

Parameters

target MemberRoleInfo

Target object.

Exceptions

ArgumentNullException

target is null.