SPRoleDefinitionCollection Members

Represents the collection of SPRoleDefinition objects defining the role definitions that are available for use within the Web site.

The SPRoleDefinitionCollection type exposes the following members.

  Name Description
Public property Count Gets the number of role definitions in the collection. (Overrides SPBaseCollection.Count.)
Public property Item[Int32] Gets the role definition at the specified index in the collection of role definition objects.
Public property Item[String] Gets the role definition with the specified name from the collection.
Public property UpgradedPersistedProperties (Inherited from SPAutoSerializingObject.)
Public property Xml Gets the role definitions for the Web site in XML format.
Top

  Name Description
Public method Add Adds a new role definition to the collection.
Public method BreakInheritance Breaks role definition inheritance and gives the current Web site its own copy of the role definitions.
Public method Delete(Int32) Deletes the role definition at the specified index in the collection.
Public method Delete(String) Deletes the role definition with the specified display name from the collection.
Public method DeleteById Deletes the role definition with the specified ID from the collection.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetById Gets the role definition with the specified ID from the collection.
Public method GetByType Returns the role definition of the specified type from the collection.
Public method GetEnumerator Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData (Inherited from SPAutoSerializingObject.)
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.)
Protected method OnDeserialization (Inherited from SPAutoSerializingObject.)
Public method ToString (Inherited from Object.)
Protected method UpdateParent (Inherited from SPAutoSerializingObject.)
Top

  Name Description
Explicit interface implemetation Private method ICollection.CopyTo Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.)
Explicit interface implemetation Private property ICollection.IsSynchronized Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.)
Explicit interface implemetation Private property ICollection.SyncRoot Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.)
Top
Show: