SPPermissionCollection.Remove method (Int32)

NOTE: This API is now obsolete.

Removes the permission object at the given index in the collection.

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

Syntax

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

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

Parameters

  • index
    Type: System.Int32

    A 32-bit integer that specifies the index of the object to remove.

See also

Reference

SPPermissionCollection class

SPPermissionCollection members

Remove overload

Microsoft.SharePoint namespace