This documentation is archived and is not being maintained.

CommonObjectSecurity.GetAuditRules Method

Gets a collection of the audit rules associated with the specified security identifier.

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

public AuthorizationRuleCollection GetAuditRules (
	bool includeExplicit,
	bool includeInherited,
	Type targetType
public AuthorizationRuleCollection GetAuditRules (
	boolean includeExplicit, 
	boolean includeInherited, 
	Type targetType
public function GetAuditRules (
	includeExplicit : boolean, 
	includeInherited : boolean, 
	targetType : Type
) : AuthorizationRuleCollection
Not applicable.



true to include audit rules explicitly set for the object.


true to include inherited audit rules.


The security identifier for which to retrieve audit rules. This must be an object that can be cast as a SecurityIdentifier object.

Return Value

The collection of audit rules associated with the specified SecurityIdentifier object.

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