AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# ISelectionList.AddValues Method

Adds an array of text values to the end of the existing selection list values.

void AddValues(
string[] values
);

#### Parameters

values
  An array of text values to be added to the selection list. A text value cannot be `null`, an empty string, or a string longer than 255 characters. Text values will preserve whitespace when stored and are case-sensitive during comparison. Duplicate text values will only be added once. The order of the values will be preserved.

#### Remarks

A text value can only occur once in the selection list. String values are case-sensitive and whitespace-sensitive. The added values will not be stored permanently until `Store` is called.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | The selection list has already been removed.
ArgumentException | The values contain an empty string or a string longer than 255 characters.

#### See Also

ISelectionList Interface | Plumtree.Remote.PRC.Content.SelectionList Namespace