Export (0) Print
Expand All

AuditRule.AuditRule Constructor

Initializes a new instance of the AuditRule class by using the specified values.

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

protected AuditRule (
	IdentityReference identity,
	int accessMask,
	bool isInherited,
	InheritanceFlags inheritanceFlags,
	PropagationFlags propagationFlags,
	AuditFlags auditFlags
)
protected AuditRule (
	IdentityReference identity, 
	int accessMask, 
	boolean isInherited, 
	InheritanceFlags inheritanceFlags, 
	PropagationFlags propagationFlags, 
	AuditFlags auditFlags
)
protected function AuditRule (
	identity : IdentityReference, 
	accessMask : int, 
	isInherited : boolean, 
	inheritanceFlags : InheritanceFlags, 
	propagationFlags : PropagationFlags, 
	auditFlags : AuditFlags
)
Not applicable.

Parameters

identity

The identity to which the audit rule applies. It must be an object that can be cast as a SecurityIdentifier.

accessMask

The access mask of this rule. The access mask is a 32-bit collection of anonymous bits, the meaning of which is defined by the individual integrators.

isInherited

true to inherit this rule from a parent container.

inheritanceFlags

The inheritance properties of the audit rule.

propagationFlags

Whether inherited audit rules are automatically propagated. The propagation flags are ignored if inheritanceFlags is set to None.

auditFlags

The conditions for which the rule is audited.

Exception typeCondition

ArgumentException

The value of the identity parameter cannot be cast as a SecurityIdentifier, or the auditFlags parameter contains an invalid value.

ArgumentOutOfRangeException

The value of the accessMask parameter is zero, or the inheritanceFlags or propagationFlags parameters contain unrecognized flag values.

Notes to Implementers: This method should not be used by integrators. Integrators should never create inherited rules.

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:
© 2015 Microsoft