SPAclSecurity<TAccessRightsEnum>.GetAccessRules method
Gets a collection of the access rules associated with the security object.
Namespace: Microsoft.SharePoint.Administration.AccessControl
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overridable Function GetAccessRules As IEnumerable(Of SPAclAccessRule(Of TAccessRightsEnum))
'Usage
Dim instance As SPAclSecurity
Dim returnValue As IEnumerable(Of SPAclAccessRule(Of TAccessRightsEnum))
returnValue = instance.GetAccessRules()
public virtual IEnumerable<SPAclAccessRule<TAccessRightsEnum>> GetAccessRules()
Return value
Type: System.Collections.Generic.IEnumerable<SPAclAccessRule<TAccessRightsEnum>>
Returns an enumerator that can be used to iterate over each access rule.
See also
Reference
SPAclSecurity<TAccessRightsEnum> class