AddRight(Right):Void

Adds permissions for the data object to a group.

The group and the permissions must have been defined at the time of calling the method. The data object for which the permissionsare to be set may not be set in the parameter right however.

If the data object is already set and does not correspond to the current data object, then an ArgumentException is triggered with the message "Cannot add an existing right to another data object.".

If no group is defined in the parameter, then an ArgumentException is triggered with the message "This right does not contain any group.".

If, in addition, no permissions are set in the parameter, then the default value for this property is used.

Return type: System.Void

Parameter

right

Type: Onion.Client.Right

This parameter already contains, at the time of calling of the method, the group to which the permissions are to be added. Furthermore, the desired permissions for the data object must be set.