Condividi tramite


SPWeb.GetWebsAndListsWithUniquePermissions Method

Retrieves a collection of Webs and Lists that either have unique permissions themselves or have items with 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 GetWebsAndListsWithUniquePermissions As Collection(Of SPWebListInfo)
'Usage
Dim instance As SPWeb
Dim returnValue As Collection(Of SPWebListInfo)

returnValue = instance.GetWebsAndListsWithUniquePermissions()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.CollectionOfSPTypesReturnType)]
public Collection<SPWebListInfo> GetWebsAndListsWithUniquePermissions()

Return Value

Type: System.Collections.ObjectModel.Collection<SPWebListInfo>
A Collection<T> with the items having unique permissions.

Remarks

Onyl site collection admins can perform this action because it may return information on subwebs that even current web admins do not have permission to see.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace