Roles class

Parent Previous Next

The Roles object represents a collection of roles


Namespace:

IYOPRO.Api

Assembly:

IYOPRO.Api (in IYOPRO.Api.dll)


Syntax

       private class Roles()


Members

public Role GetRole(string role)

Gets the role by the given name

public RoleUser AddUser(string role, string account)

Adds a user to a given Role. If the role does not exist it will be created