Прочетете на английски Редактиране

Споделяне чрез


ActiveDirectorySecurity.AuditRuleFactory Method

Definition

Creates an AuditRule object.

Overloads

AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags)

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

Creates an AuditRule object with the specified values.

C#
public override sealed System.Security.AccessControl.AuditRule AuditRuleFactory(System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags);

Parameters

identityReference
IdentityReference

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

accessMask
Int32

An Int32 bitmask that shows the access privileges to use.

isInherited
Boolean

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

inheritanceFlags
InheritanceFlags

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

propagationFlags
PropagationFlags

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

flags
AuditFlags

An AuditFlags object that contains the audit flags for this ActiveDirectorySecurity object.

Returns

The AuditRule that corresponds to the ActiveDirectorySecurity object.

See also

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.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

AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags, Guid, Guid)

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

Creates an AuditRule object with the specified values.

C#
public override sealed System.Security.AccessControl.AuditRule AuditRuleFactory(System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags, Guid objectGuid, Guid inheritedObjectGuid);

Parameters

identityReference
IdentityReference

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

accessMask
Int32

An Int32 bitmask that shows the access privileges to use.

isInherited
Boolean

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

inheritanceFlags
InheritanceFlags

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

propagationFlags
PropagationFlags

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

flags
AuditFlags

An AuditFlags object that contains the audit flags for this ActiveDirectorySecurity object.

objectGuid
Guid

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

inheritedObjectGuid
Guid

A Guid object that contains the Guido of the inherited directory object.

Returns

The AuditRule that corresponds to the ActiveDirectorySecurity object.

See also

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.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