Roles class

class Roles : ObservableCollection<Role>

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)

 Methods

Role GetRole(string role)

Gets the role by the given name

RoleUser AddUser(string role, string account)

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