SPPermissionCollection methods

NOTE: This API is now obsolete.

The SPPermissionCollection type exposes the following members.

Methods

  Name Description
Public method Add Obsolete. Creates a permission object with the specified member and permissions in the collection.
Public method AddCollection Obsolete. Adds users and their permissions to a list, modifies the permissions of users for a list, modifies the permissions of an existing group for a list, or modifies the permissions of an existing role for a site.
Public method CheckPermissions Obsolete. Verifies whether the current user has the specified permissions for the list or site and, if not, throws an Access Denied exception.
Public method DoesUserHavePermissions Obsolete. Returns a value that indicates whether the current user has the specified permissions.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(Int32) Obsolete. Removes the permission object at the given index in the collection.
Public method Remove(SPMember) Obsolete. Removes from the collection the permission that is associated with the specified member.
Public method RemoveCollection Obsolete. Removes the permissions represented by an integer array of member IDs from the collection.
Public method ResetPermissions Obsolete. Resets the permissions inherited from the parent object.
Public method ToString (Inherited from Object.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.)

Top

See also

Reference

SPPermissionCollection class

Microsoft.SharePoint namespace