在本地做一些测试我看到了属性 pwdlastset 在...上 SearchResult ,所以我想知道属性名称是不是你期望的那样。
pwdlastset
SearchResult
result.Properties["pwdlastset"]
还有一个 PropertyNames SearchResult属性集合上可能有用的集合。此外,当我在没有打电话之前询问AD时 GetDirectoryEntry() 但只是直接从SearchResult枚举属性。
PropertyNames
GetDirectoryEntry()