ActiveDirectorySecurity::AccessRuleFactory Method (IdentityReference^, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType, Guid, Guid)
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, Guid objectGuid, Guid inheritedObjectGuid ) 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 if ACEs are inherited. true if ACEs are inherited; otherwise, false.
- inheritanceFlags
-
Type:
System.Security.AccessControl::InheritanceFlags
An InheritanceFlags object that contains inheritance flags for a directory object.
- propagationFlags
-
Type:
System.Security.AccessControl::PropagationFlags
A PropagationFlags object that contains inheritance propagation flags for a directory object.
- type
-
Type:
System.Security.AccessControl::AccessControlType
An AccessControlType object that contains the ACE type.
- objectGuid
-
Type:
System::Guid
A Guid object that contains the GUID of the directory object.
- inheritedObjectGuid
-
Type:
System::Guid
A Guid object that contains the GUID of the inherited directory object.
Return Value
Type: System.Security.AccessControl::AccessRule^The AccessRule that corresponds to the ActiveDirectorySecurity object.
Available since 2.0