Posted By

rengber on 02/01/07


Tagged

properties iterator SystemDirectoryServices ActiveDs


Versions (?)

Method to Iterate Through Properties of a System.DirectoryServices.DirectoryEntry


 / Published in: C#
 

  1. foreach(string name in entry.Properties.PropertyNames)
  2. {
  3. LogEntry(name);
  4. foreach(object o in entry.Properties[name])
  5. {
  6. //o is sometimes a COM object, but this is close.
  7. LogEntry(o.ToString());
  8. }
  9. }

Report this snippet  

You need to login to post a comment.