Table of Contents

Struct Role

Namespace
The.Security
Assembly
Instagile.dll

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

Name string

Properties

Name

[Key(0)]
public string Name { readonly get; set; }

Property Value

string

Methods

Equals(Role)

Indicates whether the current object is equal to another object of the same type.

public readonly bool Equals(Role other)

Parameters

other Role

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

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.