Can I mix DirectoryServices with AccountManagement?

78 Views Asked by At

I'm writing some code that involves Active Directory. Is it generally acceptable to mix calls to System.DirectoryServices with calls to System.DirectoryServices.AccountManagement? Are the two libraries designed to be used interchangeably or should I choose one and stick to that?

1

There are 1 best solutions below

5
On

Unless there is something specific I need that AccountManagement doesn't do by creating new inherited classes I will try to stick to just using AccountManagment with the extra classes, I have seen issues where you try to use both at the same time.