SPRoleDefinitionCollection members
Represents a collection of SPRoleDefinition objects defining the role definitions that are available for use within the Web site.
The SPRoleDefinitionCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count | Gets the number of role definitions in the collection. (Overrides SPBaseCollection.Count.) | |
Item[Int32] | Gets the role definition at the specified index in the collection of role definition objects. | |
Item[String] | Gets the role definition with the specified name from the collection. | |
Xml | Gets the role definitions for the Web site in XML format. |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds a new role definition to the collection. | |
BreakInheritance | Creates unique role definitions for the current Web site, optionally copies the role definitions from the parent Web site, and optionally maintains the role assignments. | |
Delete(Int32) | Deletes the role definition at the specified index in the collection. | |
Delete(String) | Deletes the role definition with the specified display name from the collection. | |
DeleteById | Deletes the role definition with the specified ID from the collection. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetById | Gets the role definition with the specified ID from the collection. | |
GetByType | Returns the role definition of the specified type from the collection. | |
GetEnumerator | Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
GetTypedEnumerator<T> | Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Explicit interface implementations
Name | Description | |
---|---|---|
ICollection.CopyTo | Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.) | |
ICollection.IsSynchronized | Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.) | |
ICollection.SyncRoot | Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.) |
Top