如何禁用文件夹的继承并删除所有继承的权限
谢谢
我试过这个:
DirectoryInfo dInfo = new DirectoryInfo(path); DirectorySecurity dSecurity = dInfo.GetAccessControl(); dSecurity.SetAccessRuleProtection(false, false);
c# permissions explorer
c# ×1
explorer ×1
permissions ×1