Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ActiveDirectoryAuditRule Constructor (IdentityReference, ActiveDirectoryRights, AuditFlags, Guid)

ActiveDirectoryAuditRule Constructor (IdentityReference, ActiveDirectoryRights, AuditFlags, Guid)

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

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

public ActiveDirectoryAuditRule(
	IdentityReference identity,
	ActiveDirectoryRights adRights,
	AuditFlags auditFlags,
	Guid objectType
)

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 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 can not be zero.

objectType
Type: System.Guid

Specifies a Guid object that contains the GUID of the object to which the access permissions apply.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft