Class UserRole
- Namespace
- ATAS.DataFeedsCore
- Assembly
- ATAS.DataFeedsCore.dll
Named set of administrative rights (EntityAction values) of the ATAS emulation server.
public class UserRole : IEntity
- Inheritance
-
objectUserRole
- Implements
- Extension Methods
Constructors
UserRole()
Initializes a new role without rights.
public UserRole()
Properties
Description
Gets or sets an optional description of the role.
public string? Description { get; set; }
Property Value
- string
EntityType
Gets the type of the entity.
[Browsable(false)]
public EntityType EntityType { get; }
Property Value
Id
Gets or sets the database identifier of the role.
[Browsable(false)]
public long Id { get; set; }
Property Value
- long
Name
Gets or sets the display name of the role.
public string Name { get; set; }
Property Value
- string
Rights
Gets or sets the actions the role allows. Empty by default.
public HashSet<EntityAction> Rights { get; set; }
Property Value
- HashSet<EntityAction>
Methods
OnPropertyChanged(string)
Raises the PropertyChanged event.
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyNamestringThe name of the changed property.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Events
PropertyChanged
Occurs when a property value changes.
Added in ATAS 8.0.15.
public event PropertyChangedEventHandler? PropertyChanged
Event Type
- PropertyChangedEventHandler