Role

A Role definition for privileges assignment.

Namespace:
Inetdev.Security
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
System.Object
Implements:
System.IEquatable{Inetdev.Security.Role}

Constructors

Role

Initializes a new instance of Role.

Signature:
public Void Role(name, description)
Parameters
Name Type Summary
name String Role name.
description String Role description.
Exceptions
Type Summary
ArgumentNullOrEmptyException Thrown when name is null or empty.

Properties

Description

Role description.

Signature:
public String Description { get; set; }

Name

Role name.

Signature:
public String Name { get; set; }

Methods

Equals

Checks whether this Role is equal to other.

Signature:
public Boolean Equals(other)
Parameters
Name Type Summary
other Role

Equals

Checks whether this Role is equal to obj.

Signature:
public Boolean Equals(obj)
Parameters
Name Type Summary
obj Object

GetHashCode

Returns a hash for this object. Not required, implemented to avoid compiler warning.

Signature:
public Int32 GetHashCode()

ToString

Returns a textual representation of the Role.

Signature:
public String ToString()