ActiveDirectoryAuditRule Constructor (IdentityReference, ActiveDirectoryRights, AuditFlags, ActiveDirectorySecurityInheritance)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

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

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 a 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.

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.

.NET Framework
Available since 2.0
Return to top
Show: