Re: Read Access to All Directories

From: Daren May (daren_may_at_zzzzzzzzhotmail.com)
Date: 03/09/04


Date: Mon, 8 Mar 2004 22:54:51 -0800

Actually, it looks like FileIOPermission supports the AllFile property,
however FileIOPermissionAttribute does not...

"Eugene V. Bobukh [MS]" <eugenebo@online.microsoft.com> wrote in message
news:%23owcpzVBEHA.892@tk2msftngp13.phx.gbl...
Hi Daren,

The following should do the trick:

[assembly:FileIOPermissionAttribute(SecurityAction.RequestMinimum, AllFiles
= FileIOPermissionAccess.Read)]

-- 
Eugene V. Bobukh
This message is provided "AS IS" with no warranties, and confers no rights.
Any opinions or policies stated within it are my own and do not necessarily
constitute those of my employer.
----
"Daren May" <daren_may@zzzzzzzzhotmail.com> wrote in message
news:u9Ob6uTBEHA.744@TK2MSFTNGP10.phx.gbl...
> Is there a way that I can specifiy that a class has a minimum requirement
to
> Read access for the entire filesystem?  I have written a diskspace
> application that displays the utilization in a Pie Chart and I iterate
> through all directories, etc. to get the values.  It works fine right now,
> however I want to ensure that it is fully CAS complient, but the examples
> for the FileIOPermissionAttribute seem to apply to a single path.
>
> Any suggestions?
>
> Thanks.
>
>

Quantcast