ActiveDirectoryAuditRule Constructors

Definition

Initializes a new instance of the ActiveDirectoryAuditRule class.

Overloads

ActiveDirectoryAuditRule(IdentityReference, ActiveDirectoryRights, AuditFlags)

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

ActiveDirectoryAuditRule(IdentityReference, ActiveDirectoryRights, AuditFlags, ActiveDirectorySecurityInheritance)

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

ActiveDirectoryAuditRule(IdentityReference, ActiveDirectoryRights, AuditFlags, Guid)

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

ActiveDirectoryAuditRule(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.

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

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

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

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

ActiveDirectoryAuditRule(IdentityReference, ActiveDirectoryRights, AuditFlags)

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

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

C#
public ActiveDirectoryAuditRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags);

Parameters

identity
IdentityReference

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

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

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

ActiveDirectoryAuditRule(IdentityReference, ActiveDirectoryRights, AuditFlags, ActiveDirectorySecurityInheritance)

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

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

C#
public ActiveDirectoryAuditRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType);

Parameters

identity
IdentityReference

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

adRights
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
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
ActiveDirectorySecurityInheritance

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

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

ActiveDirectoryAuditRule(IdentityReference, ActiveDirectoryRights, AuditFlags, Guid)

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

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

C#
public ActiveDirectoryAuditRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, Guid objectType);

Parameters

identity
IdentityReference

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

adRights
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
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
Guid

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

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

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

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

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

C#
public ActiveDirectoryAuditRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType);

Parameters

identity
IdentityReference

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

adRights
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
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
ActiveDirectorySecurityInheritance

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

inheritedObjectType
Guid

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

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

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

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

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

C#
public ActiveDirectoryAuditRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, Guid objectType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType);

Parameters

identity
IdentityReference

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

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

objectType
Guid

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

inheritanceType
ActiveDirectorySecurityInheritance

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

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

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

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

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

C#
public ActiveDirectoryAuditRule(System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, Guid objectType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType);

Parameters

identity
IdentityReference

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

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

objectType
Guid

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

inheritanceType
ActiveDirectorySecurityInheritance

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

inheritedObjectType
Guid

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

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10