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

Definition

Initializes a new instance of the ObjectAccessRule class that represents a new access control rule for the associated security object.

public:
 override 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 override 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);
override this.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

Represents a user account.

accessMask
Int32 Int32 Int32

The access type.

isInherited
Boolean Boolean Boolean

true if the access rule is inherited; otherwise, false.

inheritanceFlags
InheritanceFlags InheritanceFlags InheritanceFlags

Specifies how to propagate access masks to child objects.

propagationFlags
PropagationFlags PropagationFlags PropagationFlags

Specifies how to propagate Access Control Entries (ACEs) to child objects.

type
AccessControlType AccessControlType AccessControlType

Specifies whether access is allowed or denied.

Returns

Represents a new access control rule for the specified user, with the specified access rights, access control, and flags.

Applies to