tags:

views:

67

answers:

2

All--

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?

TIA

+2  A: 

The Write property mutually means you can delete msdn link

Martijn Laarman
+1  A: 

The write permit allows you to modify files as in, deleting, modifying, creating, adding.