Difference between revisions of "NXSL:DeleteCustomAttribute"

From NetXMS Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ Delete node's custom attribute. '''Since:''' 1.2.17 == Syntax == DeleteCustomAttribute(''node'', ''attributeName'') == Parameters == {| class="wikitable" |- | ''n...")
 
m (Text replacement - "^" to "{{deprecated}}")
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
{{deprecated}}__NOTOC__
Delete node's custom attribute.
Delete objects custom attribute.


'''Since:''' 1.2.17
'''Since:''' 1.2.17


== Syntax ==
== Syntax ==
DeleteCustomAttribute(''node'', ''attributeName'')
DeleteCustomAttribute(''object'', ''attributeName'')


== Parameters ==
== Parameters ==
{| class="wikitable"
{| class="wikitable"
|-
|-
| ''node'' || [[NXSL:Node|Node]] object, you can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see [[SG:Security Issues|Security Issues]] for more information).
| ''object'' || Any object of [[NXSL_Class_Reference|NetObj class]], or its sub-classes.
You can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see [[SG:Security Issues|Security Issues]] for more information).
|-
|-
| ''attributeName'' || Custom attribute name.
| ''attributeName'' || Custom attribute name.
Line 17: Line 18:
== Return Value ==
== Return Value ==


???
'''null'''


== Examples ==
== Examples ==


DeleteCustomAttribute($node, "my_attribute") -> ???
<syntaxhighlight lang="c">
DeleteCustomAttribute($node, "my_attribute");
</syntaxhighlight>

Latest revision as of 16:13, 13 September 2022

This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

Delete objects custom attribute.

Since: 1.2.17

Syntax

DeleteCustomAttribute(object, attributeName)

Parameters

object Any object of NetObj class, or its sub-classes.

You can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see Security Issues for more information).

attributeName Custom attribute name.

Return Value

null

Examples

DeleteCustomAttribute($node, "my_attribute");