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


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.