ObjectSecurity.AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType) ObjectSecurity.AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType) ObjectSecurity.AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType) Method

Definition

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

public:
 abstract System::Security::AccessControl::AccessRule ^ AccessRuleFactory(System::Security::Principal::IdentityReference ^ identityReference, int accessMask, bool isInherited, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, System::Security::AccessControl::AccessControlType type);
public abstract System.Security.AccessControl.AccessRule AccessRuleFactory (System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type);
abstract member AccessRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AccessControlType -> System.Security.AccessControl.AccessRule

Parameters

identityReference
IdentityReference IdentityReference IdentityReference

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

accessMask
Int32 Int32 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
Boolean Boolean Boolean

true if this rule is inherited from a parent container.

inheritanceFlags
InheritanceFlags InheritanceFlags InheritanceFlags

Specifies the inheritance properties of the access rule.

propagationFlags
PropagationFlags PropagationFlags PropagationFlags

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

type
AccessControlType AccessControlType AccessControlType

Specifies the valid access control type.

Returns

The AccessRule object that this method creates.

Applies to