Guest User

Untitled

a guest
Aug 16th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. C# : issue with file access control
  2. FileInfo fi = new FileInfo(path);
  3. FileSecurity ds = fi.GetAccessControl();
  4. ds.AddAccessRule(new FileSystemAccessRule("Authenticated Users", FileSystemRights.xxxxxxxx, AccessControlType.Deny));
  5. fi.SetAccessControl(ds);
Add Comment
Please, Sign In to add comment