PartCount property: Message class
Syntax
Use the PartCount property to determine the number of parts in a container message. This property is only valid with container messages. You will receive an error if you try to use it on a message that isn't a container message.
This property is read-only.