Roles class

Parent Previous Next

The Roles object represents a collection of roles. An instance of the Roles collection is provided by the ProcessInstance object.


Namespace:

IYOPRO.Api

Assembly:

IYOPRO.Api (in IYOPRO.Api.dll)


Syntax

       class Roles : ObservableCollection<Role>


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