Hunny Software Library Reference

BodyStructureData.NumBodyParts Property

Gets the number of nested BODYSTRUCTURE items.

[Visual Basic]
Public ReadOnly Property NumBodyParts As Integer
[C#]
public int NumBodyParts {get;}

Property Value

The number of nested BODYSTRUCTURE items.

Remarks

BODYSTRUCTURE structures in an IMAP4 FETCH response may be nested. This is how the server returns information about multipart messages or multipart body parts. For example, if a messages contains multiple body parts, then the BODYSTRUCTURE structure for that message contains a nested BODYSTRUCTURE structure for each body part it contains.

The library parses nested BODYSTRUCTURE structures and creates a corresponding tree of BodyStructureData instances.

The value of this property indicates the number of BodyStructureData instances contained by this BodyStructureData instance. Call the BodyPart method to get the BodyStructureData instance at a specified index position.

The value is nonzero only if the media type is "multipart/*" or "message/rfc822".

See Also

BodyStructureData Class | Hunny.Mail Namespace