SPRoleCollection.Remove Method (Int32)

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 at the specified index in the collection and is maintained for backward compatibility.)

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

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

Parameters

  • index
    Type: System.Int32

    A 32-bit integer that specifies the index.

See Also

Reference

SPRoleCollection Class

SPRoleCollection Members

Remove Overload

Microsoft.SharePoint Namespace