access control
access control
access control
access control
access control
access control access control access control access control access control access control access control
access control access control
access control
Directory / File IO / Registry Topics include: IO, file system and the registry

Enjoy an ad free experience by logging in. Not a member yet? Register.
Go Back  Xtreme .NET Talk > > > access control


Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2015, 10:11 PM
Amerigo Amerigo is offline
Newcomer
 
Join Date: Jul 2012
Posts: 7
Amerigo is on a distinguished road
Question access control



Hi. I'm having trouble figuring out how to determine access control of a directory.

Code:
    Private Sub ListView2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ListView2.SelectedIndexChanged
        For Each Itm In ListView2.SelectedItems
            Dim Target As New IO.DirectoryInfo(Itm.tag)
            If *target is not protected* Then
                GetDIRitems(Itm.tag)
else
msgbox("Access is denied to " & target.name)
            End If

        Next
    End Sub
Reply With Quote
  #2  
Old 09-26-2015, 05:25 PM
PlausiblyDamp's Avatar
PlausiblyDampaccess control PlausiblyDamp is offline
Ultimate Contributor

Preferred language:
C#, VB
 
Join Date: Sep 2002
Location: Lancashire, UK
Posts: 6,487
PlausiblyDamp is on a distinguished road
Default Re: access control

__________________
Posting Guidelines FAQ Post Formatting

Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein
Reply With Quote
Reply

Bookmarks

Tags
access, control, dim, itm, listview2.selecteditems

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access control from static method jccorner Windows Forms 1 02-13-2007 06:36 PM
Access Session State from Control Diesel ASP.NET 1 04-08-2005 03:26 PM
Access to Windows.System.Forms.Control romanhoehne Windows Forms 1 01-07-2004 07:07 AM
Access user control public functions OnTheAnvil ASP.NET 9 12-08-2003 01:13 PM
Cannot access "Items" collection of custom control inside another custom control Omid Golban Windows Forms 1 06-10-2003 04:22 PM

Advertisement:







Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
access control
access control
access control access control
access control
access control
access control access control access control access control access control access control access control
access control
access control
 
access control
access control