i found this code to update a property on an active directory entry:

If user.Properties.Contains("title") Then

    user.Properties("title")(0) = employeeTitle.SelectedItem.Text



End If

I understand it except for the ("title)(0). why is this a double index array. what does the (0) do?


Anyone have any ideas on this? Or just more generally what is the proper way to write to property fields in active directory like name or employee id for an update or first time write. (fields actually should all be created)

Also I couldn't figure out if my network is the one responsible for these fields like id or phone number or if they are already created fields by Microsoft and if this impacts how you write to different properties of a user.

This makes googleing a little tricky as I'm not sure if there is on method for all or it depends on the property.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.