This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

SetCustomAttribute()

Deprecated in 3.0.

Please use setCustomAttribute() method of NetObj class.

SetCustomAttribute(object, name, value): String

Set custom attribute name to value on object.

Table 1. Parameters

object

Target object.

name

Custom attribute name.

value

Custom attribute value.

Return

Previous value of the custom attribute, or null if it did not exist or the script lacks modify access to the object.

>>> SetCustomAttribute($node, "test", "test value")
>>> test@$node
test value