SPList.GetItemsWithUniquePermissions method (Int32, Boolean)
Returns a collection of SPListItemInfo objects for items that have unique permissions by specifying the maximum number of items to return and whether to return only folder information.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetItemsWithUniquePermissions ( _
maxItemToReturn As Integer, _
folderOnly As Boolean _
) As Collection(Of SPListItemInfo)
'Usage
Dim instance As SPList
Dim maxItemToReturn As Integer
Dim folderOnly As Boolean
Dim returnValue As Collection(Of SPListItemInfo)
returnValue = instance.GetItemsWithUniquePermissions(maxItemToReturn, _
folderOnly)
public Collection<SPListItemInfo> GetItemsWithUniquePermissions(
int maxItemToReturn,
bool folderOnly
)
Parameters
maxItemToReturn
Type: System.Int32The max number of items to return.
folderOnly
Type: System.Booleantrue to return only information about items that represent an SPFolder object; false to return information about all items, including folders.
Return value
Type: System.Collections.ObjectModel.Collection<SPListItemInfo>
A collection of SPListItemInfo objects with basic information about the list items. If no list items have unique permissions, an empty collection is returned.