C# System.DirectoryServices.DirectorySearcher.PropertiesToLoad 中有哪些不同的可用属性
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10035481/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What are the different properties available in System.DirectoryServices.DirectorySearcher.PropertiesToLoad
提问by ganders
Everything I've googled just says you can add them as a string array, but doesn't say what the available options are.
我在谷歌上搜索的所有内容只是说您可以将它们添加为字符串数组,但没有说明可用选项是什么。
What are all the different properties that are available from Directory Services?
目录服务提供的所有不同属性有哪些?
采纳答案by marc_s
You can put anyof the valid LDAP attributes into PropertiesToLoad- see a list of all Active Directory attributes here- what you need is the Ldap-Display-Namefor each attribute you're interested in.
您可以将任何有效的 LDAP 属性放入PropertiesToLoad-在此处查看所有 Active Directory 属性的列表- 您需要的是Ldap-Display-Name您感兴趣的每个属性。
Also: Richard Mueller has a site with lots of good info on AD and LDAP- including Excel spreadsheets of the AD attributes (and also a mapping from the Active Directory User & Computer tool to the actual AD attributes being set on those various dialog screens.
另外:Richard Mueller 有一个站点,里面有很多关于 AD 和 LDAP 的好信息——包括 AD 属性的 Excel 电子表格(以及从 Active Directory 用户和计算机工具到在这些各种对话框屏幕上设置的实际 AD 属性的映射。
回答by JPBlanc
Active-Directory as any other Directories contains objects that are discribed by a Schema. The Schema discribe each type (class) of object that can be inserted in the Directory and for each type give the attributes(properties) that it supports.
Active-Directory 与任何其他目录一样包含由Schema描述的对象。模式描述了可以插入目录中的每种类型(类)对象,并为每种类型提供它支持的属性(属性)。
The Schema can be extended by an application (like Exchange for example), you can have a look to the schema in your AD registering the MMC provided for that :
架构可以由应用程序扩展(例如 Exchange),您可以查看 AD 中的架构,注册为此提供的 MMC:
regsvr32 C:\Windows\System32\schmmgmt.dll
Then you can load MMC.EXE program and have a look to the class you are intested in, and the attributes it provides.
然后您可以加载MMC.EXE 程序并查看您所测试的类及其提供的属性。


To see all all the objects in you Direcory with all their attributes you can use the LDP.EXE program (comming from support kit in W2K3 natively install on W2K8 AD server)
要查看 Direcory 中的所有对象及其所有属性,您可以使用 LDP.EXE 程序(来自 W2K3 中的支持工具包,本机安装在 W2K8 AD 服务器上)



