Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ObjectAuditRule Constructor
Collapse the table of content
Expand the table of content

ObjectAuditRule Constructor

Initializes a new instance of the ObjectAuditRule class.

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

protected ObjectAuditRule(
	IdentityReference identity,
	int accessMask,
	bool isInherited,
	InheritanceFlags inheritanceFlags,
	PropagationFlags propagationFlags,
	Guid objectType,
	Guid inheritedObjectType,
	AuditFlags auditFlags
)

Parameters

identity
Type: System.Security.Principal.IdentityReference

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

accessMask
Type: System.Int32

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
Type: System.Boolean

true if this rule is inherited from a parent container.

inheritanceFlags
Type: System.Security.AccessControl.InheritanceFlags

Specifies the inheritance properties of the access rule.

propagationFlags
Type: System.Security.AccessControl.PropagationFlags

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

objectType
Type: System.Guid

The type of object to which the rule applies.

inheritedObjectType
Type: System.Guid

The type of child object that can inherit the rule.

auditFlags
Type: System.Security.AccessControl.AuditFlags

The audit conditions.

ExceptionCondition
ArgumentException

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

ArgumentOutOfRangeException

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft