    

 ## On this page

  

 

 # setCustomMetadata

 Last update: 30.07.2026 

public [setCustomMetadata](set-custom-metadata.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), key: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), value: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))

Add custom metadata to a variable.

#### Parameters

namevariable name.keythe key of the metadata to addvaluethe value of the metadata to add.#### Throws

[ModelCenterException](./../-model-center-exception/index.md)