本文介绍了权限从目录中删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我写code,检查的写权限,并从某些目录中删除。第一是相当容易的。要白衣:
I am writing code that checks for the permission to write to and delete from certain directories. The first is fairly easy. To whit:
FileIOPermission writePermit = new FileIOPermission(FileIOPermissionAccess.Write, _ArchiveHome);
writePermit.Demand();
不过,我该怎么办相同的权限从给定的目录中删除?
But, how do I do the same for permission to delete from a given directory?
推荐答案
在写属性相互意味着您可以删除 MSDN链接
The Write property mutually means you can deletemsdn link
这篇关于权限从目录中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!