Read File Permissions in C#

String fullPath = Path.GetFullPathInternal(path);
// For security check, path should be resolved to an absolute path.
new System.Security.Permissions.FileIOPermission(FileIOPermissionAccess.Write, new String[] { fullPath }, false, false ).Demand(); 

Download this snippet

Twitter Twitter

1 Comments to “ Read File Permissions in C#”

  1. Anonymous  on Jul 13, 2010

    4boibh <a href="http://hfczesgqvypc.com/">hfczesgqvypc</a>, [url=http://phmpjpjjpkfn.com/]phmpjpjjpkfn[/url], [link=http://hgzzzflpphid.com/]hgzzzflpphid[/link], http://ngmjvvmwqagd.com/

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>