SPRole properties

NOTE: This API is now obsolete.

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

See also

Reference

SPRole class

Microsoft.SharePoint namespace