Partilhar via


SPRoleAssignmentCollection.Add Method

Include Protected Members
Include Inherited Members

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