System.Security.AccessControl.CommonObjectSecurity.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
Specifies whether the security identifier for which to retrieve access rules is of type T:System.Security.Principal.SecurityIdentifier or type T:System.Security.Principal.NTAccount. The value of this parameter must be a type that can be translated to the System.Security.Principal.SecurityIdentifier type.

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