Skip to main content
Version: 4.2.5

Mail Body Parts Object

Overview

Collection of "sibling" Mail Body Part Objects existing at a single level in the message.

Sections

Init, Main, Procedures, OnExit, and Structure.

note

The object is declared in the Declare section.

Properties

NameDescription
CountNumber of objects in the collection.
ItemReturns the part object at index.
ObjectIsEmptyReturns 1 if object is not created.
LastReturnCodeReturns last known return code from object.
note

Properties ObjectIsEmpty and LastReturnCode are common methods. For more information see Common properties and methods.

Methods

NameDescription
AddAdds a new body part object to the collection.
ClearRemoves all the objects from the collection.
DeleteRemoves a body part at index from a collection.
CreateObjectCreates a new instance of the object.
FreeObjectReleases the instance of the object.
note

Methods CreateObject and FreeObject are common methods. For more information see Common properties and methods.

See Also

Mail Message Object
Mail Body Part Object

Properties


Count

Number of objects in the collection.

Type: Integer
Default: -
Read: get_Count
Write: -


Item

Returns the Mail Body Part Object at index.

Type: Integer Default: -
Read: get_Item
Write: put_Item


Methods


Add

Adds a new Mail Body Part Object to the collection.

Parameters

BodyPartType: Mail Body Part Object

Description: Name of object.
IndexType: Integer

Default: -1

Description: If index = -1, the body part is added to the end of the list.

See Also

Mail Body Parts Object::Clear
Mail Body Parts Object::Delete


Clear

Removes all the objects from the collection.

Parameters

---

See Also

Mail Body Parts Object::Add
Mail Body Parts Object::Delete


Delete

Removes a Mail Body Part Object at index from the collection.

Parameters

IndexType: Integer

See Also

Mail Body Parts Object::Add
Mail Body Parts Object::Clear