System.Security.AccessControl.ObjectSecurity.SetAccessRuleProtection Method

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

Syntax

public void SetAccessRuleProtection (bool isProtected, bool preserveInheritance)

Parameters

isProtected
true to protect the access rules associated with this System.Security.AccessControl.ObjectSecurity object from inheritance; false to allow inheritance.
preserveInheritance
true to preserve inherited access rules; false to remove inherited access 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