SPPermissionCollection.RemoveCollection method

NOTE: This API is now obsolete.

Removes the permissions represented by an integer array of member IDs from the collection.

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

Syntax

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

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

Parameters

  • removeIds
    Type: []

    A 32-bit integer array that specifies an array of member IDs.

Remarks

The parameter of the RemoveCollection method consists of an array of ID property values for the SPMember objects associated with the permissions to remove.

See also

Reference

SPPermissionCollection class

SPPermissionCollection members

Microsoft.SharePoint namespace