Compartilhar via


SPList.GetItemsWithUniquePermissions Method

Returns a collection of SPListItemInfo objects for items that have unique permissions.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.CollectionOfSPTypesReturnType)> _
Public Function GetItemsWithUniquePermissions As Collection(Of SPListItemInfo)
'Usage
Dim instance As SPList
Dim returnValue As Collection(Of SPListItemInfo)

returnValue = instance.GetItemsWithUniquePermissions()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.CollectionOfSPTypesReturnType)]
public Collection<SPListItemInfo> GetItemsWithUniquePermissions()

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.

Exceptions

Exception Condition
SPQueryThrottledException

The number of objects to return exceeds the value of the MaxItemsPerThrottledOperation property.

Remarks

The current user must be a site collection administrator.

See Also

Reference

SPList Class

SPList Members

GetItemsWithUniquePermissions Overload

Microsoft.SharePoint Namespace