WPDObject.AddChild method

The AddChild method adds a WPDObject obtained from either the Service.CreateNewObject() method or the Storage.CreateNewObject() method, as a child of this WPDObject.

Syntax

WPDObject.AddChild(
  creationContainerObject
)

Parameters

creationContainerObject

A creationContainer that is used to set data in a WPDObject so that it can be added as a child of this object.

Return value

If called in synchronous mode, this method returns the newly created child object. If called in asynchronous mode, this method does not return a value. The newly created child object is provided as a parameter to the handler-function assigned to the onAddChildComplete event.

Remarks

To enable asynchronous behavior, set the handler for the onAddChildComplete event before calling this method.

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]

See also

Creation Container Object

Service Object

Storage Object

WPDObject