Difference between revisions of "NXSL:CreateContainer"

From NetXMS Wiki
Jump to navigation Jump to search
m (Text replacement - "^" to "{{deprecated}}")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
__NOTOC__
{{deprecated}}__NOTOC__
Create container object.
Create container object.


Line 26: Line 26:
== Examples ==
== Examples ==


<syntaxhighlight lang="c">
  CreateContainer(FindObject(2), "New Container");    // Create container directly under "Infrastructure Services"
  CreateContainer(FindObject(2), "New Container");    // Create container directly under "Infrastructure Services"
</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)

Create container object.

Since: 1.2.0

Syntax

CreateContainer(parent, name);


Parameters

parent Parent object. Can be either container or infrastructure services root. Reference to parent object can be obtained using FindObject function.
name Name for new container object.


Return Value

Reference to newly created object.


Examples

 CreateContainer(FindObject(2), "New Container");    // Create container directly under "Infrastructure Services"