Struct Role
A name granted to some principal which can be checked by authorisation. Names are compared case-insensitively.
[MessagePackObject(false)]
public record struct Role : IEquatable<Role>
- Implements
- Inherited Members
Constructors
Role(string)
A name granted to some principal which can be checked by authorisation. Names are compared case-insensitively.
public Role(string Name)
Parameters
Namestring
Properties
Name
[Key(0)]
public string Name { readonly get; set; }
Property Value
Methods
Equals(Role)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(Role other)
Parameters
otherRoleAn object to compare with this object.
Returns
GetHashCode()
Returns the hash code for this instance.
public override readonly int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override readonly string ToString()
Returns
- string
The fully qualified type name.