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

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).

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

Constructors

View Source

MimeHeader(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.

View Source

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 Source

Name

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

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

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

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