SPRoleDefinition Members

Include Protected Members
Include Inherited Members

Defines a single role definition, including a name, description, management properties, and a set of rights.

The SPRoleDefinition type exposes the following members.

Constructors

  Name Description
Public method SPRoleDefinition() Initializes a new instance of the SPRoleDefinition class that has no permissions.
Public method SPRoleDefinition(SPRoleDefinition) Initializes a new instance of the SPRoleDefinition class by copying the permissions of another role definition.

Top

Properties

  Name Description
Public property BasePermissions Gets or sets the base permissions for a role definition.
Public property Description Gets or sets a description for the role definition.
Public property Hidden Gets a Boolean value that indicates whether the role definition is displayed on the Add Users page.
Public property Id Gets the ID of the role definition within the collection.
Public property Name Gets or sets the name of the role definition.
Public property Order Specifies the order in which permission levels are displayed on the Permission Levels page for a site collection.
Public property ParentWeb Gets the parent Web site for the role definition.
Public property Type Gets the type of the role definition.
Public property Xml Gets the permissions for the role definition in XML format.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method Update Updates the role definition with changes that have been made to its properties.

Top

See Also

Reference

SPRoleDefinition Class

Microsoft.SharePoint Namespace