The data validation example at Data Validation|Documentation has the following line:
Validation validation = validations[validations.Add(ca)];
However, this doesn’t compile, as there is no ValidationCollection.Add that…...Add method does not accept a CellArea as a parameter directly...(list data validation), and changed the part that didn’t work into...