Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ObjectSecurity.AuditRuleFactory Method

Initializes a new instance of the AuditRule class with the specified values.

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

abstract AuditRuleFactory : 
        identityReference:IdentityReference * 
        accessMask:int * 
        isInherited:bool * 
        inheritanceFlags:InheritanceFlags * 
        propagationFlags:PropagationFlags * 
        flags:AuditFlags -> AuditRule


Type: System.Security.Principal.IdentityReference

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

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.

Type: System.Boolean

true if this rule is inherited from a parent container.

Type: System.Security.AccessControl.InheritanceFlags

Specifies the inheritance properties of the audit rule.

Type: System.Security.AccessControl.PropagationFlags

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

Type: System.Security.AccessControl.AuditFlags

Specifies the conditions for which the rule is audited.

Return Value

Type: System.Security.AccessControl.AuditRule
The AuditRule object that this method creates.

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