I have been able to extend the system class DirectoryEntry by adding static methods like setSAMAccountName, setMail, setPassword, etc.
But my goal is to set them like parameters in the form of de.Mail = email@example.com...
Is there a way of doing this without extending the DirectoryEntry class? becose when i run the code de.Childen.Add ... the method implementation returns a DirectoryEntry and not my extended class.
Is there a way of COMPLETELY extend this class?
View Complete Post