关闭。这个问题需要 details or clarity 。它目前不接受答案。
想改善这个问题吗?添加详细信息并通过 editing this post 澄清问题。
4年前关闭。
Improve this question
我在使用时遇到问题
System.DirectoryServices.ActiveDirectory
我的项目中的命名空间。视觉工作室给了我一个错误:
The type or namespace name 'ActiveDirectory' does not exist in the namespace 'System.DirectoryServices'
我需要添加引用来解决这个问题。
谢谢你的帮助
最佳答案
在解决方案资源管理器中展开您的项目,然后右键单击“引用”>“添加引用”并在“程序集”下查找“DirectoryServices”。
添加后,您可能应该使用 using 语句来引用页面顶部的事件目录。
using System.DirectoryServices.ActiveDirectory
关于c# - 我在哪里可以找到要添加到我的项目中的 "ActiveDirectory"引用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45619186/