Class MailHeader
Represents a single Internet message header (RFC 5322 §3.2) parsed from a
message's transport headers (PidTagTransportMessageHeaders).
Inherited Members
Namespace: DRIT.Mail.Mapi
Assembly: DRIT.Mail.dll
Syntax
public sealed class MailHeader
Constructors
View SourceMailHeader(string, string)
Initializes a new instance of the MailHeader class with the specified name and value.
Declaration
public MailHeader(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The header field name (e.g. |
| string | value | The raw (unfolded) header value. |
Properties
View SourceDecodedValue
Gets the header value with RFC 2047 encoded words
(=?charset?encoding?encoded_text?=) decoded into readable text.
Declaration
public string DecodedValue { get; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Gets the header field name (e.g. Subject, Content-Type).
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Value
Gets or sets the raw (unfolded) header value. RFC 2047 encoded words are preserved as-is; use DecodedValue for the decoded form.
Declaration
public string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceToString()
Processes the to string data.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |