RemoveContent

Description

Removes a child PBDOM_OBJECT from the current PBDOM_OBJECT.

Syntax

pbdom_object_name.RemoveContent(pbdom_object_ref)

Argument

Description

pbdom_object_name

The name of the PBDOM_OBJECT

pbdom_object_ref

The PBDOM_OBJECT to remove


Return value

Boolean.

Returns true if the content was removed, and false otherwise.

Throws

EXCEPTION_PBDOM_OBJECT_INVALID_FOR_USE -- This PBDOM_OBJECT object or the input PBDOM_OBJECT is not associated with a derived PBDOM_OBJECT class object.

EXCEPTION_INVALID_ARGUMENT -- The input PBDOM_OBJECT to be removed is invalid. This can happen if this object has not been initialized properly or is a null object reference.

Usage

When a new PBDOM_OBJECT is removed from the current one, all children under the removed PBDOM_OBJECT are also removed.

See also

AddContent

GetContent

InsertContent

SetContent