Wednesday, September 16, 2015

Working with ADSI in C#

If you have a requirement to work with ADSI in C#, unfortunately, the default MSDN documentation on ADSI (Active Directory Service Interfaces) does not provide much guidance on accomplishing this:

All of the sample articles refer to using either VBScript, Visual Basic 6.0 or Visual C++ 6.0!

Well, fortunately, you may also come across this article which points you to using the System.DirectoryServices assembly in .NET:

When you then search for examples using System.DirectoryServices, you may find examples such as this:

Invoking ADSI Methods

Invoking ADSI Properties

For the complete documentation on the System.DirectoryServices assembly, you can check out this MSDN article:

No comments:

Post a Comment