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