tryPutAtKey

tryPutAtKey(keys:  KeyType;
            value: MemberType): Boolean, lockReceiver, updating;

The tryPutAtKey method of the DynaDictionary class attempts to add the (key, value) pair specified in the keys and value parameters to the dictionary if it is not already present. This method returns true if the (key, value) pair was successfully added; otherwise it returns false.

Dictionaries with a no‑duplicates constraint raise exception 1310 (Key already used in this dictionary) when the collection already contains the member key or keys with a different value.

2020.0.01 and higher