Class MimeHeader
A MIME header (RFC 5322 §3.2). Consists of a name, a primary value, and optional
semicolon-separated parameters (e.g. Content-Type: text/plain; charset=utf-8).
Inherited Members
Namespace: DRIT.Mail.Rfc.Mime
Assembly: DRIT.Mail.dll
Syntax
public sealed class MimeHeader
Constructors
View SourceMimeHeader(string, string)
Initializes a new instance of the MimeHeader class with no parameters.
Declaration
public MimeHeader(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Specifies the name value. |
| string | value | The value to process. |
MimeHeader(string, string, MimeHeaderParameterCollection)
Initializes a new instance of the MimeHeader class.
Declaration
public MimeHeader(string name, string value, MimeHeaderParameterCollection parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Specifies the name value. |
| string | value | The value to process. |
| MimeHeaderParameterCollection | parameters | Specifies the parameters value. |
Properties
View SourceName
Gets the header field name (e.g. Content-Type, Subject).
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Parameters
Gets the parameters associated with this header (e.g. charset,
boundary). May be empty for headers without parameters.
Declaration
public MimeHeaderParameterCollection Parameters { get; }
Property Value
| Type | Description |
|---|---|
| MimeHeaderParameterCollection |
Value
Gets the primary header value (the part before any semicolon-separated parameters). For unstructured headers, this is the entire value.
Declaration
public string Value { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceToString()
Processes the to string data.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |