Click or drag to resize
MimeKit

HeaderSet Class

A set of headers.
Inheritance Hierarchy
SystemObject
  MailKitHeaderSet

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

The HeaderSet type exposes the following members.

Constructors
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
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.)
Public methodGetEnumerator
Get an enumerator for the set of headers.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove(HeaderId)
Remove the specified header.
Public methodRemove(String)
Remove the specified header.
Public methodToString
Returns a string that represents the current object.
(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