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: https://msdn.microsoft.com/en-us/library/aa746486.aspx

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: https://support.microsoft.com/en-us/kb/315716

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

Invoking ADSI Methods
https://msdn.microsoft.com/en-us/library/ms180896%28v=vs.80%29.aspx

Invoking ADSI Properties
https://msdn.microsoft.com/en-US/library/ms180895%28v=vs.80%29.aspx

For the complete documentation on the System.DirectoryServices assembly, you can check out this MSDN article: https://msdn.microsoft.com/en-us/library/system.directoryservices%28v=vs.110%29.aspx

No comments:

Post a Comment