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: 2.14.0
Syntax
C#
public class Header

The Header type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyField
Gets the name of the header field.
Public propertyId
Gets the header identifier.
Public propertyOffset
Gets the stream offset of the beginning of the header.
Public propertyRawField
Gets the raw field name of the header.
Public propertyRawValue
Gets the raw value of the header.
Public propertyValue
Gets or sets the header value.
Top
Methods
  NameDescription
Public methodClone
Clone the header.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodFormatRawValue
Format the raw value of the header to conform with the specified formatting options.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue(String)
Gets the header value using the specified charset.
Public methodGetValue(Encoding)
Gets the header value using the specified character encoding.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetRawValue
Set the raw header value.
Public methodSetValue(String, String)
Sets the header value using the specified charset.
Public methodSetValue(Encoding, String)
Sets the header value using the specified character encoding.
Public methodSetValue(FormatOptions, String, String)
Sets the header value using the specified formatting options and charset.
Public methodSetValue(FormatOptions, Encoding, String)
Sets the header value using the specified formatting options and character encoding.
Public methodToString
Returns 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