I tried to use DirectoryServices Namespace, but it is not listed on the list of System Namespace, and the .NET compiler doesn't recognize it. Does someone know how to use it?
In the head of my program listed all the "using". If I type "System." I receive a list of all namespaces included in System namespace, and DirectoryServices is not listed there. Is my station need to be an active directory for using this namespace?
You must first set a reference to that namespace in your project window.
C# is not like Java, where once you include a namespace you automatically get everything below it. You have to explicitly tell the compiler what to reference.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.