active directory - F# - how do I index a collection (specifically the PropertyCollection) -


i'm trying wrap mind around f# thought fun convert simple c# code have looks user in active directory using system.directoryservices namespace , returns directoryentry object. part i'm struggling indexing propertycollection contained in directoryentry.

in c# once have directoryentry can @ properties in propertycollection doing this:

entry.properties["displayname"].value 

i'm struggling how index collection in f#. can shed light on this?

you need add . before brackets.

entry.properties.["displayname"].value 

coming c++ / c# background found syntax bit odd @ first used it.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -