Share via


SPRoleAssignmentCollection.Add method

Adds a role assignment to the role assignment collection.

Overload list

  Name Description
Public method Add(SPPrincipal) Creates a new role assignment for a specified security principal and gives the security principal guest access to objects in the current scope and in all parent scopes.
Public method Add(SPRoleAssignment) Adds a role assignment to the collection of role assignment objects.

Top

See also

Reference

SPRoleAssignmentCollection class

SPRoleAssignmentCollection members

Microsoft.SharePoint namespace