I am trying to ponder over F #, so I thought it would be interesting to convert some simple C # code that I have that scans the user in Active Directory using the System.DirectoryServices namespace and returns a DirectoryEntry object. The part I'm struggling with is indexing the PropertyCollection contained in DirectoryEntry.
In C #, when I have DirectoryEntry, I can get the properties in the PropertyCollection by doing the following:
entry.Properties["displayName"].Value
I am currently struggling with how to index a collection in F #. Can anyone shed some light on this?
source
share