Body | This is the parsed body of this MessagePart. It is parsed in that way, if the body was ContentTransferEncoded, it has been decoded to the correct bytes. It will be a null reference if this MessagePart is a MultiPart message. Use IsMultiPart to check if this MessagePart is a MultiPart message. |
BodyEncoding | This is the encoding used to parse the message body if the MessagePart is not a MultiPart message. It is derived from the ContentType character set property. |
ContentDescription | A human readable description of the body a null reference if no Content-Description header was present in the message. |
ContentDisposition | Used to describe if a MessagePart is to be displayed or to be though of as an attachment. Also contains information about filename if such was sent. a null reference if no Content-Disposition header field was present in the message |
ContentId | ID of the content part (like an attached image). Used with MultiPart messages. a null reference if no Content-ID header field was present in the message. |
ContentTransferEncoding | This header describes the Content encoding during transfer. If no Content-Transfer-Encoding header was present in the message, it is set to the default of SevenBit in accordance to the RFC. |
ContentType | The Content-Type header field. If not set, the ContentType is created by the default "text/plain; charset=us-ascii" which is defined in RFC 2045 section 5.2. If set, the default is overridden. |
FileName | This is a convenient-property for figuring out a FileName for this MessagePart. If the MessagePart is a MultiPart message, then it makes no sense to try to find a FileName. The FileName can be specified in the ContentDisposition or in the ContentType properties. If none of these places two places tells about the FileName, a default "(no name)" is returned. |
IsAttachment | A MessagePart is considered to be an attachment, if - it is not holding text and is not a MultiPart message or - it has a Content-Disposition header that says it is an attachment |
IsMultiPart | Describes if this MessagePart is a MultiPart message The MessagePart is a MultiPart message if the ContentType media type property starts with "multipart/" |
IsText | A MessagePart is considered to be holding text in it's body if the MediaType starts either "text/" or is equal to "message/rfc822" |
MessageParts | If this MessagePart is a MultiPart message, then this property has a list of each of the Multiple parts that the message consists of. It is a null reference if it is not a MultiPart message. Use IsMultiPart to check if this MessagePart is a MultiPart message. |
GetBodyAsText | Gets this MessagePart's Body as text. This is simply the BodyEncoding being used on the raw bytes of the Body property. This method is only valid to call if it is not a MultiPart message and therefore contains a body. |
Save | Overloaded. Save this MessagePart's contents to a file. There are no methods to reload the file. |
MessagePart Class | OpenPop.Mime Namespace