Remove All Directory Permissions

前端 未结 4 1138
情话喂你
情话喂你 2021-01-02 04:16

In C# (2.0) How do I remove all permissions to a directory, so I can limit the access. I will be adding access back to a limited set of users.

4条回答
  •  不知归路
    2021-01-02 05:02

    System.IO.Directory.GetAccessControl() and then edit the returned FileSecurity object.

提交回复
热议问题