FileSetAccessControl Method (String, FileSecurity, AccessControlSections) |
Applies access control list (ACL) entries described by a
DirectorySecurity object to the specified directory.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static void SetAccessControl(
string path,
FileSecurity fileSecurity,
AccessControlSections includeSections
)
Public Shared Sub SetAccessControl (
path As String,
fileSecurity As FileSecurity,
includeSections As AccessControlSections
)
public:
static void SetAccessControl(
String^ path,
FileSecurity^ fileSecurity,
AccessControlSections includeSections
)
static member SetAccessControl :
path : string *
fileSecurity : FileSecurity *
includeSections : AccessControlSections -> unit
Parameters
- path
- Type: SystemString
A directory to add or remove access control list (ACL) entries from. - fileSecurity
- Type: System.Security.AccessControlFileSecurity
A FileSecurity object that describes an ACL entry to apply to the directory described by the path parameter. - includeSections
- Type: System.Security.AccessControlAccessControlSections
One or more of the AccessControlSections values that specifies the type of access control list (ACL) information to set.
Exceptions See Also