Modifying Attributes with ADSI
To modify attribute values, ADSI provides the IADs.Put and IADs.PutEx methods. These methods modify the data on the client-side cache. The IADs.SetInfo method must be called to commit the changes to the directory.
The IADs.Put method takes an attribute name and a variant parameter. Use this method to set attributes that contain both single and multiple values.
The IADs.PutEx method provides control over operations on multi-valued attributes. You can append, delete, update, and clear existing values. The IADs.PutEx method always expects a variant array of attribute values. However, you can use this method to set an attribute with a single value as well.