get active directory properties

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how i can know all the properties of user that i get from active directory -
that exist (i dont know there names)

thanks
 
If you're using the directory searcher there is a properties property that
will return a collection of all the properties associated with that result.



Dim results As DirectoryServices.SearchResultCollection = ds.FindAll

Dim col As ICollection = results(5).Properties.PropertyNames



You can then enumerate the property names using IEnumerator.



Dim en As IEnumerator = col.GetEnumerator

While en.MoveNext

ListBox1.Items.Add(en.Current)

End While



HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top