ActiveDirectorySecurity.AccessRuleFactory Method (IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType, Guid, Guid)

Creates an AccessRule object with the specified values.

Namespace:  System.DirectoryServices
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

public override sealed AccessRule AccessRuleFactory(
	IdentityReference identityReference,
	int accessMask,
	bool isInherited,
	InheritanceFlags inheritanceFlags,
	PropagationFlags propagationFlags,
	AccessControlType type,
	Guid objectGuid,
	Guid inheritedObjectGuid


Type: System.Security.Principal.IdentityReference

An IdentityReference object, such as an NTAccount object, that resolves to a security identifier (SID).

Type: System.Int32

An Int32 bitmask that shows the access privileges to use.

Type: System.Boolean

A Boolean object that indicates if ACEs are inherited. true if ACEs are inherited; otherwise, false.

Type: System.Security.AccessControl.InheritanceFlags

An InheritanceFlags object that contains inheritance flags for a directory object.

Type: System.Security.AccessControl.PropagationFlags

A PropagationFlags object that contains inheritance propagation flags for a directory object.

Type: System.Security.AccessControl.AccessControlType

An AccessControlType object that contains the ACE type.

Type: System.Guid

A Guid object that contains the GUID of the directory object.

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft