• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class MailHeader

Represents a single Internet message header (RFC 5322 §3.2) parsed from a message's transport headers (PidTagTransportMessageHeaders).

Inheritance
object
MailHeader
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Mapi
Assembly: DRIT.Mail.dll
Syntax
public sealed class MailHeader

Constructors

View Source

MailHeader(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. Subject).

string value

The raw (unfolded) header value.

Properties

View Source

DecodedValue

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
View Source

Name

Gets the header field name (e.g. Subject, Content-Type).

Declaration
public string Name { get; }
Property Value
Type Description
string
View Source

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 Source

ToString()

Processes the to string data.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX