C# Class wmib.Security.Role

Afficher le fichier Open project: benapetr/wikimedia-bot Class Usage Examples

Méthodes publiques

Свойство Type Description
Level int
Permissions List
Roles List

Méthodes publiques

Méthode Description
Grant ( Role role ) : void
Grant ( string permission ) : void
IsPermitted ( string permission ) : bool
Revoke ( Role role ) : void
Revoke ( string permission ) : void
Role ( ) : System
Role ( int level_ ) : System

Method Details

Grant() public méthode

public Grant ( Role role ) : void
role Role
Résultat void

Grant() public méthode

public Grant ( string permission ) : void
permission string
Résultat void

IsPermitted() public méthode

public IsPermitted ( string permission ) : bool
permission string
Résultat bool

Revoke() public méthode

public Revoke ( Role role ) : void
role Role
Résultat void

Revoke() public méthode

public Revoke ( string permission ) : void
permission string
Résultat void

Role() public méthode

public Role ( ) : System
Résultat System

Role() public méthode

public Role ( int level_ ) : System
level_ int
Résultat System

Property Details

Level public_oe property

The level of role used to compare which role is higher
public int Level
Résultat int

Permissions public_oe property

public List Permissions
Résultat List

Roles public_oe property

Every role may contain other roles as well
public List Roles
Résultat List