Class ClaimsRole<T>
public record ClaimsRole<T> : IEquatable<ClaimsRole<T>> where T : Enum
Type Parameters
T
- Inheritance
-
ClaimsRole<T>
- Implements
-
IEquatable<ClaimsRole<T>>
- Inherited Members
Constructors
ClaimsRole(T, string, PermissionSet)
public ClaimsRole(T Name, string Description, PermissionSet Permissions)
Parameters
NameTThe name of the role, which can be checked with HasRole(string).
DescriptionstringThe user-visible role description, presented on security screens
PermissionsPermissionSetORM-level access granted by the role.
Properties
Description
The user-visible role description, presented on security screens
public string Description { get; init; }
Property Value
Name
The name of the role, which can be checked with HasRole(string).
public T Name { get; init; }
Property Value
- T
Permissions
ORM-level access granted by the role.
public PermissionSet Permissions { get; init; }