System.Security.AccessControl.ObjectSecurity.SetAuditRuleProtection Method

Sets or removes protection of the audit rules associated with this System.Security.AccessControl.ObjectSecurity object. Protected audit rules cannot be modified by parent objects through inheritance.

Syntax

public void SetAuditRuleProtection (bool isProtected, bool preserveInheritance)

Parameters

isProtected
true to protect the audit rules associated with this System.Security.AccessControl.ObjectSecurity object from inheritance; false to allow inheritance.
preserveInheritance
true to preserve inherited audit rules; false to remove inherited audit rules. This parameter is ignored if isProtected is false.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Security.AccessControl
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0