SPRoleAssignmentCollection.Add Method

Adds a role assignment to the role assignment collection.

  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.