Skip to content
WJunction - Webmaster Forum

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.

About the author

1
Established Member · Joined
257
Messages
8
Reactions
18
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom