How to get a System.__ComObject value from Active Directory in C#

后端 未结 1 1948
猫巷女王i
猫巷女王i 2021-01-22 13:39

After a long period of search I decide to ask my own question about my problem.

I try to get the value of a Property in Active Directory, but I always get a Syst

相关标签:
1条回答
  • 2021-01-22 14:18

    In fact, the variable "compte" is of type DirectoryEntry, I switched it to SearchResult, and now I can access it value with :

    compte.Properties["ENTPersonDateNaissance"][0].ToString()
    

    I hope it can help.

    0 讨论(0)
提交回复
热议问题