DirectoryObjectSecurity::GetAccessRules Method (Boolean, Boolean, Type^)
.NET Framework (current version)
Gets a collection of the access rules associated with the specified security identifier.
Assembly: mscorlib (in mscorlib.dll)
public: AuthorizationRuleCollection^ GetAccessRules( bool includeExplicit, bool includeInherited, Type^ targetType )
Parameters
- includeExplicit
-
Type:
System::Boolean
true to include access rules explicitly set for the object.
- includeInherited
-
Type:
System::Boolean
true to include inherited access rules.
- targetType
-
Type:
System::Type^
The security identifier for which to retrieve access rules. This must be an object that can be cast as a SecurityIdentifier object.
Return Value
Type: System.Security.AccessControl::AuthorizationRuleCollection^The collection of access rules associated with the specified SecurityIdentifier object.
.NET Framework
Available since 2.0
Available since 2.0
Show: