setCustomValue abstract method

void setCustomValue(
  1. String key,
  2. CustomMetadataValue value
)

Creates a key:value pair, where the value is a type derived from CustomMetadataValue.

If the given key already exists, its value will be replaced by the new one.

  • key The name of the key to be created or replaced.

  • value The value to be assigned to the key.

Implementation

void setCustomValue(String key, CustomMetadataValue value);