DirectoryServices.DirectorySearcher.PropertiesToLo ad

cajina

New member
Joined
Mar 14, 2008
Messages
1
Programming Experience
1-3
Wher do I find a list of properties to add and load in a System.DirectoryServices.DirectorySearcher

For example: "memberOf"

mySearcher.PropertiesToLoad.Add("memberOf")

What other properties exist to load in a DirectorySearcher?

:rolleyes:
 
Why do you need to load the properties into the SearchResult object?

Why not just use the DirectoryEntry object from the SearchResult.GetDirectoryEntry, the iterate through it's properties collection.

Or use PropertyCollection.PropertyNames on the directoryentry to get a list of the properties names, then use them in PropertiesToLoad.
 
Back
Top