Topic Path: Symbol Reference > Classes > TIdMessageParts Class > TIdMessageParts Properties > RelatedPartCount Property
ContentsIndexHome
PreviousUpNext
TIdMessageParts.RelatedPartCount Property

Indicates the number of attachments in the message part collection.

property RelatedPartCount: integer;

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

RelatedPartCount is updated in CountParts, and indicates the number of TIdAttachment items detected in the collection using the TIdMessagePart.ClassType method that contain a value in TIdMessagePart.ContentID. Attachments Attachments without a Content-Id header value are included in AttachmentCount

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

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.