Click or drag to resize
MimeKit

Header Class

A class representing a Message or MIME header.
Inheritance Hierarchy
SystemObject
  MimeKitHeader

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public class Header

The Header type exposes the following members.

Constructors
 NameDescription
Public methodHeader(HeaderId, String) Initialize a new instance of the Header class.
Public methodHeader(String, String) Initialize a new instance of the Header class.
Public methodHeader(Encoding, HeaderId, String) Initialize a new instance of the Header class.
Public methodHeader(Encoding, String, String) Initialize a new instance of the Header class.
Public methodHeader(String, HeaderId, String) Initialize a new instance of the Header class.
Public methodHeader(String, String, String) Initialize a new instance of the Header class.
Protected methodHeader(ParserOptions, HeaderId, String, Byte) Initialize a new instance of the Header class.
Protected methodHeader(ParserOptions, Byte, Byte, Boolean) Initialize a new instance of the Header class.
Protected methodHeader(ParserOptions, HeaderId, String, Byte, Byte) Initialize a new instance of the Header class.
Protected methodHeader(ParserOptions, Byte, Int32, Byte, Boolean) Initialize a new instance of the Header class.
Top
Properties
 NameDescription
Public propertyField Get the name of the header field.
Public propertyId Get the header identifier.
Public propertyOffset Get the stream offset of the beginning of the header.
Public propertyRawField Get the raw field name of the header.
Public propertyRawValue Get the raw value of the header.
Public propertyValue Get or sets the header value.
Top
Methods
 NameDescription
Public methodClone Clone the header.
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Protected methodFormatRawValue Format the raw value of the header to conform with the specified formatting options.
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Public methodGetValue(Encoding) Get the header value using the specified character encoding.
Public methodGetValue(String) Get the header value using the specified charset.
Protected methodMemberwiseClone
(Inherited from Object)
Public methodSetRawValue Set the raw header value.
Public methodSetValue(Encoding, String) Set the header value using the specified character encoding.
Public methodSetValue(String, String) Set the header value using the specified charset.
Public methodSetValue(FormatOptions, String, String) Set the header value using the specified formatting options and charset.
Public methodSetValue(FormatOptions, Encoding, String) Ses the header value using the specified formatting options and character encoding.
Public methodToString Return a string representation of the header.
(Overrides ObjectToString)
Public methodStatic memberTryParse(Byte, Header) Try to parse the given input buffer into a new Header instance.
Public methodStatic memberTryParse(String, Header) Try to parse the given text into a new Header instance.
Public methodStatic memberTryParse(Byte, Int32, Header) Try to parse the given input buffer into a new Header instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Header) Try to parse the given input buffer into a new Header instance.
Public methodStatic memberTryParse(ParserOptions, String, Header) Try to parse the given text into a new Header instance.
Public methodStatic memberTryParse(Byte, Int32, Int32, Header) Try to parse the given input buffer into a new Header instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Int32, Header) Try to parse the given input buffer into a new Header instance.
Public methodStatic memberTryParse(ParserOptions, Byte, Int32, Int32, Header) Try to parse the given input buffer into a new Header instance.
Public methodStatic memberUnfold Unfold the specified header value.
Top
Remarks
Represents a single header field and value pair.
See Also