Internet Direct (Indy)
Home
PreviousUpNext
TIdMessageParts.AttachmentCount Property

Indicates the number of attachments in the message part collection.

Pascal
property AttachmentCount: integer;

AttachmentCount is a read-only Integer property that identifies the number of attachments in the message parts collection. 

AttachmentCount is updated in CountParts, and indicates the number of TIdAttachment items detected in the collection using the TIdMessagePart.ClassType method. 

AttachmentCount, RelatedPartCount, and TextPartCount can be used when headers are generated for an outgoing mail message. You can force an update to these values prior to transmission (or on receipt) by calling CountParts.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.