Export (0) Print
Expand All

CommonObjectSecurity.RemoveAuditRule Method

Removes audit rules that contain the same security identifier and access mask as the specified audit rule from the System Access Control List (SACL) associated with this CommonObjectSecurity object.

Namespace: System.Security.AccessControl
Assembly: mscorlib (in mscorlib.dll)

protected bool RemoveAuditRule (
	AuditRule rule
)
protected boolean RemoveAuditRule (
	AuditRule rule
)
protected function RemoveAuditRule (
	rule : AuditRule
) : boolean
Not applicable.

Parameters

rule

The audit rule to remove.

Return Value

true if the audit rule was successfully removed; otherwise, false.

Audit removal is accomplished by using a complex algorithm that might add audit control rules in addition to removing them.

This method fails to remove the audit rule and returns false if the inheritance rules associated with the audit rule are too complex for the removal algorithm to succeed.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft