This class provides the ability to set a single ACL for a file or directory for a single user. You set a path, a user and UserRight (Read, Write, Change, Full) and then call the SetAcl() method to assign the right.

MemberDescription
ErrorMessage Error Message set by SetAcl
InheritSubDirectories Determines whether the permissions walk down all child
directories.
OverrideExistingRights When set overrides the existing ACLs and only attaches this
ACL effectively deleting all other ACLs. Generally you won't
want to do this and only change/add the current ACL.
Pathname Directory Resource to assign ACL to. This is a physical disk path
like d:\temp\test.
Username Username or group name to assign to this resource
UserRights Rights to assign for the given user or group.
N - None
R - Read
C - Change
F - Full
SetAcl Sets the actual ACL based on the property settings of this class.
public Boolean SetAcl()

Assembly: webconfiguration.exe
Namespace: Westwind.Tools.Web.Configuration

Inherits from:
System.Object
  Westwind.Tools.Web.Configuration.DirectoryPermission


Last Updated: 10/31/2004