SPPolicyRoleCollection members

Represents a collection of SPPolicyRole objects.

The SPPolicyRoleCollection type exposes the following members.

  Name Description
Public method SPPolicyRoleCollection Reserved for internal use.
Top

  Name Description
Public property Count Gets the number of policies in the collection.
Public property Item[Int32] Gets the policy role object at the specified index in the collection.
Public property Item[String] Gets the policy role object with the specified name in the collection.
Public property UpgradedPersistedProperties Gets the collection of field names and values for fields that were deleted or changed. (Inherited from SPAutoSerializingObject.)
Public property Xml Gets an XML representation of the policy role collection.
Top

  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
Show: