Learning by Example: DirectoryBrowser

This application allows you to specify a provider and path root. It attempts to enumerate all the children objects in that path and display their properties and attributes when selected.

Figure 16.4 shows the application in action; here we have enumerated the user nodes for a PC sitting on an AD Windows 2000 network.

Figure 16.4. The DirectoryBrowser application.

Keep in mind that you must be connected to a network that actually can see an Active Directory for this application to work. Also, the System.DirectoryServices DLL is not normally referenced inside Visual Studio. You will need to add this to your project ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.