Export (0) Print
Expand All

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)

public Collection<SPListItemInfo> GetItemsWithUniquePermissions(
	int maxItemToReturn,
	bool folderOnly
)

Parameters

maxItemToReturn
Type: System.Int32

The max number of items to return.

folderOnly
Type: System.Boolean

true 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.
Show:
© 2014 Microsoft