System.Security.AccessControl.DirectoryObjectSecurity.GetAccessRules Method

Gets a collection of the access rules associated with the specified security identifier.

Syntax

public AuthorizationRuleCollection GetAccessRules (bool includeExplicit, bool includeInherited, Type targetType)

Parameters

includeExplicit
true to include access rules explicitly set for the object.
includeInherited
true to include inherited access rules.
targetType
The security identifier for which to retrieve access rules. This must be an object that can be cast as a System.Security.Principal.SecurityIdentifier object.

Returns

The collection of access rules associated with the specified System.Security.Principal.SecurityIdentifier object.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Security.AccessControl
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0