[#BloombergLP-balm-ConfigurationUtil-setUserData-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/ConfigurationUtil.adoc[ConfigurationUtil]::setUserData
:relfileprefix: ../../../
:mrdocs:

`setUserData` overloads

== Synopses

Declared in `&lt;balm&lowbar;configurationutil&period;h&gt;`

Associate `value` with `key` on metrics matching `categoryName`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/balm/ConfigurationUtil/setUserData-04.adoc[setUserData](
    char const* categoryName,
    xref:BloombergLP/balm/MetricDescription/UserDataKey.adoc[MetricDescription::UserDataKey] key,
    void const* value,
    xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* manager = 0);
----

[.small]#xref:BloombergLP/balm/ConfigurationUtil/setUserData-04.adoc[_» more&period;&period;&period;_]#

Associate `value` with `key` on one metric&apos;s description&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/balm/ConfigurationUtil/setUserData-09.adoc[setUserData](
    char const* category,
    char const* metricName,
    xref:BloombergLP/balm/MetricDescription/UserDataKey.adoc[MetricDescription::UserDataKey] key,
    void const* value,
    xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* manager = 0);
----

[.small]#xref:BloombergLP/balm/ConfigurationUtil/setUserData-09.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *categoryName*
| category name, or prefix ending in `&ast;`
| *key*
| user&hyphen;data key previously obtained from `createUserDataKey`
| *value*
| opaque user&hyphen;data value to associate
| *manager*
| metrics manager to configure&semi; 0 uses the default
| *category*
| category of the metric to update
| *metricName*
| name of the metric to update
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
