UpdateListColumns Method
Adds, deletes, or updates columns of a list.
Object Oriented Interface
public function doUpdateListColumns($list);
Procedural Interface
insp_spsite_do_updatelistcolumns($res, $list);
Remarks
The Columns collection specifies the columns to be added, deleted, or updated. Set the ColumnUpdateOp property to specify which operation to perform on each column.
When trying to update a system-defined column, the server will return an error. Thus, if ListColumns is called, first clear the Columns before adding the list of user-defined columns to update.
NOTE: When adding a column, the ColumnName property is required.