C#类库从AD检索所有信息 [英] C# class library to retrive all info from AD

查看:32
本文介绍了C#类库从AD检索所有信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我试图找到一些代码示例来编写C#类库以从AD中检索所有信息.

但是我并没有真正在网上看到太多,有人启发了我.

谢谢
Sha

Hi
I was trying to find some code sample to write a C# class library to retrive all info from AD.

But i haven''t really seen much online,some one enlighten me.

Thanks
Sha

推荐答案

我试图重现您的结果,但失败了.

无论我如何尝试,Google通常都会返回数百万个结果.当我在查询中输入太多单词(包括所有信息")时,我可以实现的最好结果约为10万,这是可以解释的,因为很难想象这意味着什么.即使在这种情况下,结果的相关性也很好.使用清晰的代码示例可以得出一些结果.

如果您不了解您的情况,请与您分享Google查询字符串.

非常感谢.

—SA
I tried to reproduce your result but failed.

Whatever I tried to Google typically returned few millions results. The best I could achieve was about 0.1 millions, when I put too many words in the query including "all info", which is explainable, because it''s hard to imagine what that supposed to mean. Even in this case the relevance of results was pretty good; some results were complete with clear code samples.

I would ask you to share you Google query strings as I fail to understand your situation.

Thank you very much.

—SA


您的问题非常广泛,我不确定您是否能在寻找的所有内容中获得很多帮助.

1.您正在尝试编写一个可以执行AD某些(全部?)功能的库.好吧,我假设您知道如何编写类库
2.有许多示例向您展示如何使用AD,例如

http://www.willasrari.com/blog/query-active- directory-users-using-c/000133.aspx [ ^ ]

如何从Active Directory获取用户数据 [ http://msdn.microsoft.com/en-us/library/system.directoryservices. directoryentry.aspx [ ^ ]
Your question is very broad and I am not sure if you can get much help for everything you are looking for.

1. You are trying to write a library that can do some (all?) functionality of AD. Well I am assuming you know how to write class library
2. There many examples that show you how to work with AD such as

http://www.willasrari.com/blog/query-active-directory-users-using-c/000133.aspx[^]

How to get User Data from the Active Directory[^]

Now you need to refer to the documentation and figure out what methods to calls for the functionality you want to support.

http://msdn.microsoft.com/en-us/library/system.directoryservices.directoryentry.aspx[^]


查看此链接

http://support.microsoft.com/kb/316748 [
See this link

http://support.microsoft.com/kb/316748[^]
:-O


这篇关于C#类库从AD检索所有信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆