Add(Microsoft.SharePoint.SPMember, Microsoft.SharePoint.Portal.Security.PortalRight) Method

The Add method of the PermissionCollection class adds a Permission object for the specified member with the specified rights to the collection. This method takes an SPMember object that is writable.


member A Microsoft.SharePoint.SPMember object that represents the member.

spsrights A Microsoft.SharePoint.Portal.Security.PortalRight value that specifies the permissions.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security