Provides mime related utility methods.
| C# | Visual Basic | Managed C++ |
public class MimeUtils
Public Class MimeUtils
public ref class MimeUtils
| All Members | Constructors | Methods | Properties | Fields | Events |
| Icon | Member | Description |
|---|---|---|
| MimeUtilsNew() | Initializes a new instance of the MimeUtils class. | |
| ContentDispositionToString(ContentDisposition_enum) |
Converts ContentDisposition_enum to string. NOTE: Returns null for ContentDisposition_enum.NotSpecified.
| |
| ContentTransferEncodingToString(ContentTransferEncoding_enum) |
Converts ContentTransferEncoding_enum to string. NOTE: Returns null for ContentTransferEncoding_enum.NotSpecified.
| |
| CreateMessageID() |
Creates Rfc 2822 3.6.4 message-id. Syntax: '<' id-left '@' id-right '>'.
| |
| DateTimeToRfc2822(DateTime) |
Converts date to rfc 2822 date time string.
| |
| EncodeHeaderField(String) |
Encodes header field with quoted-printable encoding, if value contains ANSI or UNICODE chars.
| |
| EncodeWord(String) |
Encodes specified header field word if needed.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| FoldData(String) |
Folds long data line to folded lines.
| |
| GetHashCode() | Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType() | Gets the Type of the current instance. (Inherited from Object.) | |
| MediaTypeToString(MediaType_enum) |
Converts MediaType_enum to string. NOTE: Returns null for MediaType_enum.NotSpecified.
| |
| MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ParseContentDisposition(String) |
Parses ContentDisposition_enum from Content-Disposition: header field value.
| |
| ParseContentTransferEncoding(String) |
Parses ContentTransferEncoding_enum from Content-Transfer-Encoding: header field value.
| |
| ParseDate(String) |
Parses rfc 2822 datetime.
| |
| ParseHeaderField(String, Stream) |
Parse header specified header field value.
Use this method only if you need to get only one header field, otherwise use
MimeParser.ParseHeaderField(string fieldName,string headers).
This avoid parsing headers multiple times.
| |
| ParseHeaderField(String, String) |
Parse header specified header field value.
| |
| ParseHeaderFiledParameter(String, String, String) |
Parses header field parameter value.
For example: CONTENT-TYPE: application\octet-stream; name="yourFileName.xxx",
fieldName="CONTENT-TYPE:" and subFieldName="name".
| |
| ParseHeaders(Stream) |
Parses headers from message or mime entry.
| |
| ParseMediaType(String) |
Parses MediaType_enum from Content-Type: header field value.
| |
| ToString() | (Inherited from Object.) |
| Object | |
| MimeUtils | |
Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)