Rfc 2822 Mime Entity.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
[ObsoleteAttribute("See LumiSoft.Net.MIME or LumiSoft.Net.Mail namepaces for replacement.")] public class MimeEntity
<ObsoleteAttribute("See LumiSoft.Net.MIME or LumiSoft.Net.Mail namepaces for replacement.")> Public Class MimeEntity
[ObsoleteAttribute(L"See LumiSoft.Net.MIME or LumiSoft.Net.Mail namepaces for replacement.")] public ref class MimeEntity
[<ObsoleteAttribute("See LumiSoft.Net.MIME or LumiSoft.Net.Mail namepaces for replacement.")>] type MimeEntity = class end
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
MimeEntity()()()() |
Default constructor.
| |
Bcc |
Gets or sets header field "Bcc:" value. Returns null if value isn't set.
| |
Cc |
Gets or sets header field "Cc:" value. Returns null if value isn't set.
| |
ChildEntities |
Gets child entities. This property is available only if ContentType = multipart/... .
| |
ContentClass |
Gets or sets header field "Content-class:" value. Returns null if value isn't set. Additional property to support messages of CalendarItem type which have iCal/vCal entries. | |
ContentDescription |
Gets or sets header field "Content-Description:" value. Returns null if value isn't set.
| |
ContentDisposition |
Gets or sets header field "Content-Disposition:" value.
| |
ContentDisposition_FileName |
Gets or sets "Content-Disposition:" header field "filename" parameter.
Returns null if Content-Disposition: header field value isn't set or Content-Disposition: header field "filename" parameter isn't set.
Note: Content-Disposition must be attachment or inline.
| |
ContentID |
Gets or sets header field "Content-ID:" value. Returns null if value isn't set.
| |
ContentTransferEncoding |
Gets or sets header field "Content-Transfer-Encoding:" value. This property specifies how data is encoded/decoded.
If you set this value, it's recommended that you use QuotedPrintable for text and Base64 for binary data.
7bit,_8bit,Binary are today obsolete (used for parsing).
| |
ContentType |
Gets or sets header field "Content-Type:" value. This property specifies what entity data is.
NOTE: ContentType can't be changed while there is data specified(Exception is thrown) in this mime entity, because it isn't
possible todo data conversion between different types. For example text/xx has charset parameter and other types don't,
changing loses it and text data becomes useless.
| |
ContentType_Boundary |
Gets or sets "Content-Type:" header field "boundary" parameter.
Returns null if Content-Type: header field value isn't set or Content-Type: header field "boundary" parameter isn't set.
Note: Content-Type must be multipart/xxx or exception is thrown.
| |
ContentType_CharSet |
Gets or sets "Content-Type:" header field "charset" parameter.
Returns null if Content-Type: header field value isn't set or Content-Type: header field "charset" parameter isn't set.
If you don't know what charset to use then utf-8 is recommended, most of times this is sufficient.
Note: Content-Type must be text/xxx or exception is thrown.
| |
ContentType_Name |
Gets or sets "Content-Type:" header field "name" parameter.
Returns null if Content-Type: header field value isn't set or Content-Type: header field "name" parameter isn't set.
Note: Content-Type must be application/xxx or exception is thrown. This property is obsolete today, it's replaced with Content-Disposition: filename parameter. If possible always set FileName property instead of it. | |
ContentTypeString |
Gets or sets header field "Content-Type:" value. Returns null if value isn't set. This property specifies what entity data is.
This property is meant for advanced users, who needs other values what defined MediaType_enum provides.
Example value: text/plain; charset="utf-8".
NOTE: ContentType can't be changed while there is data specified(Exception is thrown) in this mime entity, because it isn't
possible todo data conversion between different types. For example text/xx has charset parameter and other types don't,
changing loses it and text data becomes useless.
| |
Data |
Gets or sets entity data. Data is encoded/decoded with "Content-Transfer-Encoding:" header field value.
Note: This property can be set only if Content-Type: isn't multipart.
| |
DataEncoded |
Gets or sets entity encoded data. If you set this value, be sure that you encode this value as specified by Content-Transfer-Encoding: header field.
Set this value only if you need custom Content-Transfer-Encoding: what current Mime class won't support, other wise set data through this.Data property.
Note: This property can be set only if Content-Type: isn't multipart.
| |
DataFromFile(String) |
Loads MimeEntity.Data property from file.
| |
DataFromStream(Stream) |
Loads MimeEntity.Data property from specified stream. Note: reading starts from current position and stream isn't closed.
| |
DataText |
Gets or sets entity text data. Data is encoded/decoded with "Content-Transfer-Encoding:" header field value with this.Charset charset.
Note: This property is available only if ContentType is Text/xxx... or no content type specified, othwerwise Excpetion is thrown.
| |
DataToFile(String) |
Saves this.Data property value to specified file.
| |
DataToStream(Stream) |
Saves this.Data property value to specified stream.
| |
Date |
Gets or sets header field "Date:" value.
| |
DSN |
Gets or sets header field "Disposition-Notification-To:" value. Returns null if value isn't set.
| |
Equals(Object) | (Inherited from Object.) | |
Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
From |
Gets or sets header field "From:" value. Returns null if value isn't set.
| |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
Header |
Gets message header.
| |
HeaderString |
Gets header as RFC 2822 message headers.
| |
InReplyTo |
Gets or sets header field "In-Reply-To:" value. Returns null if value isn't set.
| |
MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MessageID |
Gets or sets header field "Message-ID:" value. Returns null if value isn't set.
Syntax: '<'id-left@id-right'>'. Example: <621bs724bfs8@jnfsjaas4263>
| |
MimeVersion |
Gets or sets header field "Mime-Version:" value. Returns null if value isn't set.
| |
ParentEntity |
Gets parent entity of this entity. If this entity is top level, then this property returns null.
| |
ReplyTo |
Gets or sets header field "Reply-To:" value. Returns null if value isn't set.
| |
Sender |
Gets or sets header field "Sender:" value. Returns null if value isn't set.
| |
Subject |
Gets or sets header field "Subject:" value. Returns null if value isn't set.
| |
To |
Gets or sets header field "To:" value. Returns null if value isn't set.
| |
ToStream(Stream) |
Stores mime entity and it's child entities to specified stream.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
Inheritance Hierarchy
Object | |
MimeEntity |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119