Therefore API > API Reference > Classes > TheRoleAssignments > Methods
Add
Adds a role assignment.
Name
Description
Add (int, int)
Assigns the specified role to the specified user on the loaded object.
Add (int, int, string, TheServer)
Assigns the specified role to the specified user on the loaded object when a certain condition is met.
Please check the help pages of the various overloads for the exact syntax in Visual Basic and C#.