SPList.GetItemsWithUniquePermissions - Méthode (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.
Espace de noms : Microsoft.SharePoint
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Function GetItemsWithUniquePermissions ( _
maxItemToReturn As Integer, _
folderOnly As Boolean _
) As Collection(Of SPListItemInfo)
'Utilisation
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
)
Paramètres
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.
Valeur renvoyée
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.