Skip to content

IRoleDefinition interface

namespace: Serenity.Abstractions   assembly: Serenity.Net.Core

A role of the application, as IRoleListService lists them.

public interface IRoleDefinition

Members

name description
Id { get; } Gets the unique role identifier.
Name { get; } Gets the name of the role, which is what to show to the users.
RoleKey { get; } Gets the key of the role, which does not change when the role is renamed, or null if the role has none, so it is known by its name. Use GetKeyOrName for what the roles of a user and the permissions of a role are stored with.

See Also