CSharpTest.Net
MimeMessagePart Class Members
See Also  Properties  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Http Namespace : MimeMessagePart Class


Glossary Item Box

The following tables list the members exposed by MimeMessagePart.

Public Properties

 NameDescription
Public PropertyBodyThis is the parsed body of this MimeMessagePart.
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 (Nothing in Visual Basic) if this MimeMessagePart is a MultiPart message.
Use IsMultiPart to check if this MimeMessagePart is a MultiPart message.  
Public PropertyBodyEncodingThis is the encoding used to parse the message body if the MimeMessagePart
is not a MultiPart message. It is derived from the ContentType character set property.  
Public PropertyContentDescriptionA human readable description of the body

a null reference (Nothing in Visual Basic) if no Content-Description header was present in the message.
 
Public PropertyContentDispositionUsed to describe if a MimeMessagePart is to be displayed or to be though of as an attachment.
Also contains information about filename if such was sent.

a null reference (Nothing in Visual Basic) if no Content-Disposition header field was present in the message  
Public PropertyContentIdID of the content part (like an attached image). Used with MultiPart messages.

a null reference (Nothing in Visual Basic) if no Content-ID header field was present in the message.  
Public PropertyContentTransferEncodingThis 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 ContentTransferEncoding.SevenBit in accordance to the RFC.  
Public PropertyContentTypeThe 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.  
Public PropertyFileNameReturns the ContentDisposition's FileName field, or Name if not present  
Public PropertyHeadersReturns the collection of headers for a message part  
Public PropertyIsAttachmentA MimeMessagePart 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  
Public PropertyIsMultiPartDescribes if this MimeMessagePart is a MultiPart message

The MimeMessagePart is a MultiPart message if the ContentType media type property starts with "multipart/"  
Public PropertyIsTextA MimeMessagePart is considered to be holding text in it's body if the MediaType starts either "text/" or is equal to "message/rfc822"  
Public PropertyMessagePartsIf this MimeMessagePart 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 (Nothing in Visual Basic) if it is not a MultiPart message.
Use IsMultiPart to check if this MimeMessagePart is a MultiPart message.  
Public PropertyNameReturns the ContentDisposition's Name field, or FileName if not present  
Public PropertyTextGets this MessagePart's Body as text, or null if the IsMultiPart property is true.
 
Top

See Also

Generated with Document! X 2011 by Innovasys