G Guest Jan 4, 2006 #1 how i can know all the properties of user that i get from active directory - that exist (i dont know there names) thanks
how i can know all the properties of user that i get from active directory - that exist (i dont know there names) thanks
B Brian Mitchell Jan 4, 2006 #2 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
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