FileSetAccessControl Method (String, FileSecurity) |
Applies access control list (ACL) entries described by a
FileSecurity FileSecurity object to the specified file.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void SetAccessControl(
string path,
FileSecurity fileSecurity
)
Public Shared Sub SetAccessControl (
path As String,
fileSecurity As FileSecurity
)
public:
static void SetAccessControl(
String^ path,
FileSecurity^ fileSecurity
)
static member SetAccessControl :
path : string *
fileSecurity : FileSecurity -> unit
Parameters
- path
- Type: SystemString
A file 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 file described by the path
parameter.
See Also