Compartilhar via


SPSite.GetAllReusableAcls Method (Int32)

Returns the reusable access control lists (ACLs) of the site collection up to a specified limit.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.InterfaceType)> _
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public Function GetAllReusableAcls ( _
    maximumNumberToFetch As Integer _
) As IDictionary(Of Guid, SPReusableAcl)
'Usage
Dim instance As SPSite
Dim maximumNumberToFetch As Integer
Dim returnValue As IDictionary(Of Guid, SPReusableAcl)

returnValue = instance.GetAllReusableAcls(maximumNumberToFetch)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.InterfaceType)]
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public IDictionary<Guid, SPReusableAcl> GetAllReusableAcls(
    int maximumNumberToFetch
)

Parameters

  • maximumNumberToFetch
    Type: System.Int32

    A 32-bit integer that specifies the maximum number of ACLs to return. If the number of unique ACLs in the site collection exceeds the value specified by maximumNumberToFetch, nothing is returned.

Return Value

Type: System.Collections.Generic.IDictionary<Guid, SPReusableAcl>
A System.Collections.Generic.IDictionary interface that represents the collection of reusable ACLs of the site collection.

Exceptions

Exception Condition
MaxAclExceeded()

The number of ACLs in the system exceeds the requested limit.

See Also

Reference

SPSite Class

SPSite Members

GetAllReusableAcls Overload

Microsoft.SharePoint Namespace