Click or drag to resize
MimeKit

HeaderSetAdd(String) Method

Add the specified header.

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

Parameters

header  String
The header to add.

Return Value

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