[#BloombergLP-balm-MetricDescription-setUserData] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricDescription.adoc[MetricDescription]::setUserData :relfileprefix: ../../../ :mrdocs: Associate the specified `value` with the specified data `key`. The behavior is undefined unless `key >= 0`. Note that this method allows clients of `balm` to associate (opaque) application‐specific information with a metric. == Synopsis Declared in `<balm_metricdescription.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setUserData( xref:BloombergLP/balm/MetricDescription/UserDataKey.adoc[UserDataKey] key, void const* value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#