ActiveDirectoryAuditRule Constructor (IdentityReference, ActiveDirectoryRights, AuditFlags, ActiveDirectorySecurityInheritance, Guid)

Initializes a new instance of the ActiveDirectoryAuditRule class with the specified identity, rights, flags, inheritance type, and inherited object type.

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

public ActiveDirectoryAuditRule(
	IdentityReference identity,
	ActiveDirectoryRights adRights,
	AuditFlags auditFlags,
	ActiveDirectorySecurityInheritance inheritanceType,
	Guid inheritedObjectType
)

Parameters

identity
Type: System.Security.Principal.IdentityReference

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

adRights
Type: System.DirectoryServices.ActiveDirectoryRights

Specifies an ActiveDirectoryRights data type object, which is used to define all the rights that can be set on a directory object, as defined in the ActiveDirectoryRights enumeration.

auditFlags
Type: System.Security.AccessControl.AuditFlags

Specifies an AuditFlags object, which contains the combination of one or more audit flags to add to this ActiveDirectoryAuditRule. The allowable flags are Success and Failure. This parameter may not be zero.

inheritanceType
Type: System.DirectoryServices.ActiveDirectorySecurityInheritance

Specifies the ActiveDirectorySecurityInheritance object that contains inheritance information. The allowable flags for this parameter are found in the ActiveDirectorySecurityInheritance enumeration.

inheritedObjectType
Type: System.Guid

Specifies the Guid object that identifies the type of child object that can inherit this access rule.

.NET Framework

Supported in: 4.5.3, 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
Show:
© 2014 Microsoft