Click or drag to resize

MimeStructure Class

Represents data part of a mime tree stored on an IMAP server. You can obtain instance of this class using GetMessageInfoByUID(Int64) or GetBodyStructureByUID(Int64). You can download actual content of such part using following methods: GetDataByUID(MimeStructure), GetDataByUID(MimeStructure, Int64), GetDataByUID(ListMimeStructure).
Inheritance Hierarchy

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
[SerializableAttribute]
public class MimeStructure : MimeBaseStructure

The MimeStructure type exposes the following members.

Properties
 NameDescription
Public propertyAlternativeKey Gets the key that allows to recognize same content in Visuals collection. All parts under the same MultipartAlternative are assigned the same key.
(Inherited from MimeBaseStructure)
Public propertyContentId Content id of the part. Without enclosing '<' and '>'. You can use ContentIdHelper to extract content id from cid url.
Public propertyContentTransferEncoding Gets the content transfer encoding of this part.
Public propertyContentType Gets the content type of this part.
(Inherited from MimeBaseStructure)
Public propertyData Gets data represented by this part. You can use GetDataByUID(MimeStructure) or GetDataByNumber(MimeStructure) to fill this property. May be null, if server responds with NIL response.
Public propertyFileName Gets the suggested file name of this part. May be null or empty. Consider using SafeFileName as it is guaranteed to contain valid file name.
Public propertyHasContentType Gets boolean value indicating, if content-type was specified explicitly for this entity.
(Inherited from MimeBaseStructure)
Public propertyHasFileName Gets a boolean value indicating if FileName is set.
Public propertyID Gets the id of this part.
(Inherited from MimeBaseStructure)
Public propertyMessageNumber Gets the message number of the message, that this part belongs to.
(Inherited from MimeBaseStructure)
Public propertySafeFileName Gets the safe file name of this part. All special characters and path are removed. If the file name is not specified (FileName is or empty) generates random file name in format "att_d1be267b623941159a159158138a636e.dat".
Public propertySize Gets the size of this part in bytes. Note that this size is the size in attachment's transfer encoding and not the resulting size after any decoding. This means that, for example, base64 encoded files, are in fact 37% smaller than the value of this property.
Obsolete
Public propertyTransferSize Gets the size of this part in bytes. Note that this size is the size in attachment's transfer encoding and not the resulting size after any decoding. This means that, for example, base64 encoded files, are in fact 37% smaller than the value of this property.
Public propertyUID Gets the unique id (UID) of the message, that this part belongs to.
(Inherited from MimeBaseStructure)
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodEstimateActualSize Estimates actual attachment size. Bases on assumption that Base64, UUE and XUUE encoded files are 37% smaller.
Obsolete
Public methodEstimateSize Estimates actual attachment size. Bases on assumption that Base64, UUE and XUUE encoded files are 37% smaller.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also