Click or drag to resize

MimeData Class

Inheritance Hierarchy

Namespace:  Limilabs.Mail.MIME
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
[SerializableAttribute]
public class MimeData : MimeBase

The MimeData type exposes the following members.

Properties
  NameDescription
Public propertyContentDisposition
'Content-Disposition' of the data. This object provides information on what you should do with the data.
(Inherited from MimeBase.)
Public propertyContentId
Content-ID of this entity. Without enclosing '<' and '>'. You can use ContentIdHelper to extract content id from cid url.
(Inherited from MimeBase.)
Public propertyContentLocation
Content location of this mime entity.
(Inherited from MimeBase.)
Public propertyContentTransferEncoding
Gets or sets 'Content-Transfer-Encoding' of the data. This object provides information on how the data was encoded for transport purposes. Please remember that setting Data may override content transfer encoding.
Public propertyContentType
Content type of the body.
(Inherited from MimeBase.)
Public propertyContentTypeHeader
Represents 'Content-type' header. You can use this class to add additional options to content-type header. Use ContentType to get or set content-type only.
(Inherited from MimeBase.)
Public propertyData
Gets or sets byte array contained in this MIME object. When set, ContentTransferEncoding is updated using the most appropriate MimeEncoding value.
Public propertyFileName
Gets or sets suggested file name (FileName or IContentTypeHeader["name"]). 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 is explicitly set on this entity.
(Inherited from MimeBase.)
Public propertyHasFileName
Gets a boolean value indicating if FileName is set.
Public propertyHeaders
MIME headers collection.
(Inherited from MimeBase.)
Public propertySafeFileName
Gets suggested file name. All special characters and path are removed. If the FileName is not specified (HasFileName is false) generates random file name in format "att_d1be267b623941159a159158138a636e" and uses ContentType to establish correct extension.
Public propertySize
Gets the size of data contained in this MIME object.
Public propertyXApple2Mime
Gets X-Apple2Mime header value. This header is added by Apple to MIME extractor. True means that this entity was extracted from ApplicationAppleFile or MultipartAppleDouble entity.
Public propertyXBinHex2Mime
Gets X-BinHex2Mime header value. This header is added by BinHex to MIME extractor. True means that this entity was extracted from MimeBinHex.
Public propertyXRtfRenderingPosition
Gets X-Rtf-RenderingPosition header value. This header is filled by TNEF to MIME with PR_RENDERING_POSITION MAPI value or by MSG to MIME parser. It indicates where in the message text the attachment should be rendered (in characters).
Public propertyXTnef2Mime
Gets X-Tnef2Mime header value. This header is added by TNEF to MIME parser. True means that this entity was extracted from ApplicationMsTnef.
Public propertyXTnef2MimeRenderingPosition Obsolete.
Gets X-Tnef2Mime-RenderingPosition header value. This header is filled by TNEF to MIME parser with PR_RENDERING_POSITION MAPI value. It indicates where in the message text the attachment should be rendered (in characters).
Public propertyXUue2Mime
Gets X-Uue2Mime header value. This header is added by UUE to MIME extractor. True means that this entity was extracted from Text.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEstimateTransportSize
Gets the estimated transport size of this MIME entity. Bases on assumption that Base64, UUE and XUUE encoded files are 37% bigger in transport.
(Overrides MimeBaseEstimateTransportSize.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMemoryStream
Creates new MemoryStream for accessing Data property.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoadFromFile
Uploads data from specified file into this MimeData entity. This method always resets FileName property.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRender
Renders this MIME object.
(Inherited from MimeBase.)
Public methodSave(Stream)
Writes Data to specified stream. Stream must be open.
Public methodSave(String)
Creates a new file with the specified name and saves Data into it.
Public methodSetFileName
Sets the FileName and ContentType value if requested.
Public methodToString
Returns content-type of this MIME object.
(Inherited from MimeBase.)
Top
Remarks
You should use MimeText when attaching text files.
See Also
Inheritance Hierarchy