Write permission on a folder

Status
Not open for further replies.
2 comments
For simple cases, you can simple catch the UnauthorizedAccessException after doing the writing jobs to know this
UnauthorizedAccessException Class - http://msdn.microsoft.com/en-us/library/system.unauthorizedaccessexception.aspx

Else you can use FileIOPermission class (http://msdn.microsoft.com/en-us/library/system.security.permissions.fileiopermission.aspx) with write access and then using AppDomain.CurrentDomain.PermissionSet (http://msdn.microsoft.com/en-us/library/system.appdomain.permissionset.aspx) on the IsSubSetOf method of FileIOPermission class to check for access
 
Status
Not open for further replies.
Back
Top