Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System..DirectoryServices Namespace

Status
Not open for further replies.

Korach

Programmer
Jun 2, 2003
303
IL
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?

Thanks
 
Have you set a reference to it in your project?

Chip H.
 
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.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top