Add or remove an ACL entry from a fileĬall the File.GetAccessControl method to get a FileSecurity object that contains the current ACL entries of a file.Īdd or remove ACL entries from the FileSecurity object returned from step 1. Modify the object, and then apply it back to the file or directory. To add or remove Access Control List (ACL) entries to or from a file or directory, get the FileSecurity or DirectorySecurity object from the file or directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |