This documentation is archived and is not being maintained.

MutexAuditRule Constructor

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

Initializes a new instance of the MutexAuditRule class, specifying the user or group to audit, the rights to audit, and whether to audit success, failure, or both.

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

public MutexAuditRule (
	IdentityReference identity,
	MutexRights eventRights,
	AuditFlags flags
)
public MutexAuditRule (
	IdentityReference identity, 
	MutexRights eventRights, 
	AuditFlags flags
)
public function MutexAuditRule (
	identity : IdentityReference, 
	eventRights : MutexRights, 
	flags : AuditFlags
)

Parameters

identity

The user or group the rule applies to. Must be of type SecurityIdentifier or a type such as NTAccount that can be converted to type SecurityIdentifier.

eventRights

A bitwise combination of MutexRights values specifying the kinds of access to audit.

flags

A bitwise combination of AuditFlags values specifying whether to audit success, failure, or both.

Exception typeCondition

ArgumentOutOfRangeException

eventRights specifies an invalid value.

-or-

flags specifies an invalid value.

ArgumentNullException

identity is a null reference (Nothing in Visual Basic).

-or-

eventRights is zero.

ArgumentException

identity is neither of type SecurityIdentifier nor of a type such as NTAccount that can be translated to type SecurityIdentifier.

To create an NTAccount object from a string representing a user or group name, use the System.Security.Principal.NTAccount(String) constructor.

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: