set_for_id


Description:

[ Version ( since = "0.3.13" ) ]
public bool set_for_id (string key_name, Value value)

Sets the value associated with key_name in this.

This key_name is used to create a new ParamSpec instance, which is further used to create and register a key using register_metadata_key. If key_name already has a value, old value is replaced by the new one.

A property key_name consists of segments consisting of ASCII letters and digits, separated by either the '-' or '_' character. The first character of a property key_name must be a letter. Key_names which violate these rules lead to undefined behaviour.

Parameters:

this

set of related keys to modify

key_name

name of the key to change or add

value

the new value

Returns:

TRUE if value was set to key_name, FALSE otherwise.