Share via


SPObjectSecurity.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 MustOverride Function GetAccessRules ( _
    ruleType As Type _
) As IEnumerable(Of SPAccessRule)
'Usage
Dim instance As SPObjectSecurity
Dim ruleType As Type
Dim returnValue As IEnumerable(Of SPAccessRule)

returnValue = instance.GetAccessRules(ruleType)
public abstract IEnumerable<SPAccessRule> GetAccessRules(
    Type ruleType
)

Parameters

Return value

Type: System.Collections.Generic.IEnumerable<SPAccessRule>
Returns IEnumerable<T>.

See also

Reference

SPObjectSecurity class

SPObjectSecurity members

Microsoft.SharePoint.Administration.AccessControl namespace