I have found a work around for this. What I wanted to do was only show directories for which the user has permissions. The work around is to try to get the directoryInfo object, and catch the exception if the person does not have permission.
Thanks again. Bob > -----Original Message----- > From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of > Joseph E Shook > Sent: Tuesday, May 28, 2002 7:03 PM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] dynamically determining which roles have access to > a folder/file > > > In the days of ASP we would use the PermissionChecker Object. Here is a > code snippet that I was experimenting with about 5 months ago. > > -----Original Message----- > From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of > Bob Edwards > Sent: Tuesday, May 28, 2002 2:47 PM > To: [EMAIL PROTECTED] > Subject: [DOTNET] dynamically determining which roles have access to a > folder/file > > Is there a way to determine which roles have access to a directory? You > can > set that a given folder can only be accessed by, for example, Manager or > Employee, is there a way to examine a directory and tell which roles > have > access? > > Thanks. > > Bob. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.