AuthorizationRule Constructor (IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags)

 

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

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

protected internal AuthorizationRule(
	IdentityReference identity,
	int accessMask,
	bool isInherited,
	InheritanceFlags inheritanceFlags,
	PropagationFlags propagationFlags
)

Parameters

identity
Type: System.Security.Principal.IdentityReference

The identity to which the access rule applies. This parameter 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 to inherit this rule from a parent container.

inheritanceFlags
Type: System.Security.AccessControl.InheritanceFlags

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.

Exception Condition
ArgumentException

The value of the identity parameter cannot be cast as a SecurityIdentifier.

ArgumentOutOfRangeException

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

.NET Framework
Available since 2.0
Return to top
Show: