ActiveDirectorySecurity::AccessRuleFactory Method (IdentityReference^, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)
.NET Framework (current version)
Creates an AccessRule object with the specified values.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
public: virtual AccessRule^ AccessRuleFactory( IdentityReference^ identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type ) override sealed
Parameters
- identityReference
-
Type:
System.Security.Principal::IdentityReference^
An IdentityReference object such as an NTAccount object that resolves to a security identifier (SID).
- accessMask
-
Type:
System::Int32
An Int32 bitmask that shows the access privileges to use.
- isInherited
-
Type:
System::Boolean
A Boolean object that indicates whether ACEs are inherited. true if ACEs are inherited; otherwise, false.
- inheritanceFlags
-
Type:
System.Security.AccessControl::InheritanceFlags
An InheritanceFlags object that contains inheritance flags on a directory object.
- propagationFlags
-
Type:
System.Security.AccessControl::PropagationFlags
A PropagationFlags object that contains inheritance propagation flags on a directory object.
- type
-
Type:
System.Security.AccessControl::AccessControlType
An AccessControlType object that contains the ACE type.
Return Value
Type: System.Security.AccessControl::AccessRule^The AccessRule that corresponds to the ActiveDirectorySecurity object.
.NET Framework
Available since 2.0
Available since 2.0
Show: