SPPolicyRoleCollection methods

The SPPolicyRoleCollection type exposes the following members.

Methods

  Name Description
Public method Add(String, String) Adds a policy role to the collection based on the specified policy role name and description.
Public method Add(String, String, SPBasePermissions, SPBasePermissions) Adds a policy role to the collection based on the specified policy role name, description, granted rights, and denied rights.
Public method Delete(Int32) Deletes the policy role at the specified index in the collection.
Public method Delete(String) Deletes the policy role with the specified name.
Public method DeleteById Deletes the policy role with the specified ID.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetById Returns the policy role with the specifed GUID from the collection.
Public method GetEnumerator Returns an enumerator to iterate through the collection.
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Gets the serialized state of the object. (Inherited from SPAutoSerializingObject.)
Public method GetSpecialRole Returns a default policy role based on the specified policy role type.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization Called after the object has been deserialized from the file system cache or the database. (Inherited from SPAutoSerializingObject.)
Public method ToString (Inherited from Object.)
Protected method UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)

Top

See also

Reference

SPPolicyRoleCollection class

Microsoft.SharePoint.Administration namespace