This documentation is archived and is not being maintained.

CommonObjectSecurity.GetAuditRules Method

Note: This method is new in the .NET Framework version 2.0.

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

Parameters

includeExplicit

true to include audit rules explicitly set for the object.

includeInherited

true to include inherited audit rules.

targetType

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Show: