Summary

Through a short series of simple classes, the System.DirectoryServices namespace is capable of exposing a rich set of features for programming Active Directory applications. In this chapter, we investigated the classes of the DirectoryServices namespace and learned how to:

  • Bind to a directory object using the DirectoryEntry class

  • Examine a directory object's ancestors and children in a directory tree by using the Parent and Children properties on a DirectoryEntry object

  • View and change a directory object's attribute list by using the PropertyCollection and PropertyValueCollection classes

  • Search for an object in a directory with the DirectorySearcher class

  • Control the search results returned

ADSI programmers should be able to make a smooth ...

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.