Share via


SPRoleCollection.Remove method

NOTE: This API is now obsolete.

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 Remove method removed the specified role from the collection and is maintained for backward compatibility.)

Overload list

  Name Description
Public method Remove(Int32) Obsolete. 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 Remove method removed the role at the specified index in the collection and is maintained for backward compatibility.)
Public method Remove(String) Obsolete. 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 Remove method removed the role with the specified name from the collection and is maintained for backward compatibility.)

Top

See also

Reference

SPRoleCollection class

SPRoleCollection members

Microsoft.SharePoint namespace