OV_NodeGroup::AddNode()
OV_NodeGroup::AddNode_Trans()
- boolean AddNode(
- [in] string NodeName)
- boolean AddNode_Trans(
- [in] string TransId,
- [in] string NodeName)
Parameters
- TransId
- Transaction ID returned from OV_Transaction::Start().
- NodeName
- The Name property of the instance of OV_ManagedNode to be added
to this node group.
Calling Convention
These methods can be called only from a WMI instance object.
Description
Adds a node (instance of OV_ManagedNode) to this node group as a
child node.
A node cannot be added to a special node group (the method fails
with MDLAPI_E_NODEGROUP_SPECIAL_ADD).
Return Value
False if the node is already a child of this node group.
Extended Status Codes
- MDLAPI_E_NODE_NOT_EXIST
- Node does not exist.
- MDLAPI_E_NODE_HIERPATH_EXISTS
- Node with the same hierarchy path (Caption) already
exists.
- MDLAPI_E_NODEGROUP_SPECIAL_ADD
- Child cannot be added to a special node group.
- MDLAPI_E_TRANSACTION_NOT_EXIST
- Transaction with the specified ID does not exist.