Click or drag to resize
MimeKit

HeaderSet Class

A set of headers.
Inheritance Hierarchy
SystemObject
  MailKitHeaderSet

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public class HeaderSet : ICollection<string>, 
	IEnumerable<string>, IEnumerable

The HeaderSet type exposes the following members.

Constructors
 NameDescription
Public methodHeaderSet Initializes a new instance of the HeaderSet class.
Public methodHeaderSet(IEnumerableHeaderId) Initializes a new instance of the HeaderSet class.
Public methodHeaderSet(IEnumerableString) Initializes a new instance of the HeaderSet class.
Top
Properties
 NameDescription
Public propertyCount Get the number of headers in the set.
Public propertyExclude Get or set whether this set of headers is meant to be excluded when used with a IFetchRequest.
Public propertyIsReadOnly Get whether or not the set of headers is read-only.
Top
Methods
 NameDescription
Public methodAdd(HeaderId) Add the specified header.
Public methodAdd(String) Add the specified header.
Public methodAddRange(IEnumerableHeaderId) Add a collection of headers.
Public methodAddRange(IEnumerableString) Add a collection of headers.
Public methodClear Clear the set of headers.
Public methodContains(HeaderId) Check if the set of headers contains the specified header.
Public methodContains(String) Check if the set of headers contains the specified header.
Public methodCopyTo Copy all of the headers in the HeaderSet to the specified array.
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetEnumerator Get an enumerator for the set of headers.
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodRemove(HeaderId) Remove the specified header.
Public methodRemove(String) Remove the specified header.
Public methodToString
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberAll A set of headers that only includes all headers.
Public fieldStatic memberEnvelope A set of headers that only includes the standard envelope headers.
Public fieldStatic memberReferences A set of headers that only includes the References header.
Top
Remarks
A set of headers.
See Also