Click or drag to resize
MimeKit

HeaderSetAdd(HeaderId) Method

Add the specified header.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public bool Add(
	HeaderId header
)

Parameters

header  HeaderId
The header to add.

Return Value

Boolean
true if the header was added to the set; otherwise, false.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionheader is not a valid HeaderId.
InvalidOperationException The operation is invalid because the HeaderSet is read-only.
Remarks
Adds the specified header to the set of headers.
See Also