Editar

Compartilhar via


ActiveDirectorySecurity.AuditRuleFactory Method

Definition

Creates an AuditRule object.

Overloads

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

Creates an AuditRule object with the specified values.

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

Creates an AuditRule object with the specified values.

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

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

Creates an AuditRule object with the specified values.

public:
 override 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);
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);
override this.AuditRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AuditFlags -> System.Security.AccessControl.AuditRule
Public Overrides NotOverridable Function AuditRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, flags As AuditFlags) As AuditRule

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

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

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

Creates an AuditRule object with the specified values.

public:
 override 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);
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);
override this.AuditRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AuditFlags * Guid * Guid -> System.Security.AccessControl.AuditRule
Public Overrides NotOverridable Function AuditRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, flags As AuditFlags, objectGuid As Guid, inheritedObjectGuid As Guid) As AuditRule

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