Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# NamedValueMap.Put Method (String, String[])

Adds a name/value pair to the map.

public string Put(
string key,
string[] values
);

#### Parameters

key
  key name. Note that the portal will uppercase the name.
values
  values to assign to the key. Can be null.

#### Return Value

Previous value associated with specified key, or null if there was no mapping for key. A null return can also indicate that the NamedValueMap previously associated null with the specified key. If the previous value was a string[], it will return the first element of the string[].

#### Remarks

Adds multiple name/value pairs to the map, where the value is a String[], replacing any existing values. Used when adding multi-value properties to the portal in Profile and Crawl. For example, if calling put("key1", {"value1", "value2", "value3"}); this would be returned to the portal as the named value pairs key1 value1 key1 value2 key1 value3 This method is only supported for UserPropertyInfo in Profile.

#### See Also

NamedValueMap Class | Plumtree.Remote.Util Namespace | NamedValueMap.Put Overload List