经过长时间的搜索,我决定就我的问题提出自己的问题。
我尝试在 Active Directory 中获取属性的值,但我总是得到一个System.__ComObject。
correspondance += compte.Properties["ENTPersonDateNaissance"][0];
我试过使用:
Microsoft.VisualBasic.Information.TypeName(compte.Properties["ENTPersonDateNaissance"]
结果是PropertyValueCollection
但我不知道如何获得价值?