Sets the access level for the given object type.
null
. null
. Note: Modifying the access level will not be stored permanently or invalidated until the Store
method is called. This method cannot be called on a leader role, since the access level of a LEADER
role cannot be modified. This method is for setting access level for individual functional areas within a project; to set the default project access level, use IProject.SetAccessLevel
method. //retrieve the member role of the project
IRole memberRole = project.GetRole(RoleTypes.Member);
//change the member role to have Admin access level for Document functional area
role.SetAccessLevel(FunctionalAreas.Document, AccessLevels.Adim);
//need to store the role to persist the access level change
role.Store();
Exception Type | Condition |
---|---|
CollaborationException | This role is a LEADER role. |
IRole Interface | Plumtree.Remote.PRC.Collaboration.Security Namespace