Share via


SPRoleCollection.Remove Method

Include Protected Members
Include Inherited Members

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