Share via


SPRoleCollection.Remove method (String)

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

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")> _
Public Sub Remove ( _
    name As String _
)
'Usage
Dim instance As SPRoleCollection
Dim name As String

instance.Remove(name)
[ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")]
public void Remove(
    string name
)

Parameters

See also

Reference

SPRoleCollection class

SPRoleCollection members

Remove overload

Microsoft.SharePoint namespace