简体   繁体   English

使用具有层次结构的c#从活动目录获取OU列表

[英]Get OU list from active directory using c# with hierarchy

I want to retrieve OU structure from active directory using c# into a treeview So far I found Acquiring AD OU list I have tested, it worked fine,this is good to get a flat list of all OUs without any hierarchies. 我想使用c#从活动目录中将OU结构检索到树状视图中到目前为止,我发现我已经测试了获取AD OU列表 ,效果很好,这很好地获得了没有任何层次结构的所有OU的平面列表。

How could I get hierarchical list with the extent of above method ? 我怎样才能得到上述方法范围的层次列表? I am using .net 2.0 and VS 2010 我正在使用.net 2.0和VS 2010

我通过每次添加一个级别来解决它,并等待用户的操作遍历下一个级别,这可以将查询拆分为多个小查询,每次运行所需的时间要少得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM