SPRole members

NOTE: This API is now obsolete.

Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, SPRole represented a site group and is maintained for backward compatibility.)

The SPRole type exposes the following members.

Properties

  Name Description
Public property Description Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the Description property returned or set the description for the role and is maintained for backward compatibility.)
Public property Groups Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the Groups property returned the collection of groups that are assigned to the role and is maintained for backward compatibility.)
Public property ID Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the ID property returned the member ID for the role and is maintained for backward compatibility.) (Overrides SPMember.ID.)
Public property Name Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the Name property returned or set the name for the role and is maintained for backward compatibility.)
Public property ParentWeb Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the ParentWeb property returned the parent Web site for the role and is maintained for backward compatibility.)
Public property PermissionMask Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the PermissionMask property returned or set the permission mask for the role is maintained for backward compatibility.)
Public property Type Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the Type property returned the type of the role is maintained for backward compatibility.)
Public property Users Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the Users property returned the collection of users that belong to the role and is maintained for backward compatibility.)
Public property Xml Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the Xml property returned the role in XML format and is maintained for backward compatibility.)

Top

Methods

  Name Description
Public method AddGroup Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the AddGroup method added the specified group to the role and is maintained for backward compatibility.)
Public method AddUser(SPUser) Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the AddUser method added the specified user to the role and is maintained for backward compatibility.)
Public method AddUser(String, String, String, String) Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the AddUser method added the user specified by user name, e-mail address, display name, and notes to the role and is maintained for backward compatibility.)
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 RemoveGroup Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the RemoveGroup method removed the specified group from the role and is maintained for backward compatibility.)
Public method RemoveUser Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the RemoveUser method removed the specified user from the role and is maintained for backward compatibility.)
Public method ToString Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the ToString method returned the name of the role and is maintained for backward compatibility.) (Overrides Object.ToString().)
Public method Update Obsolete. Use the new SPRoleDefinition and SPRoleAssignment classes instead, to define roles and to assign users to them. For more information, see Authorization object model. (In Windows SharePoint Services 2.0, the Update method updated the database with changes made to the role and is maintained for backward compatibility.)

Top

See also

Reference

SPRole class

Microsoft.SharePoint namespace