MailKit Documentation
MailKit Documentation
API Reference
MailKit
HeaderSet Class
HeaderSet Methods
Add Method
Add(HeaderId) Method
Add(String) Method
Header
Set
Add(String) Method
Add the specified header.
Namespace:
MailKit
Assembly:
MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
Copy
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
Exception
Condition
ArgumentNullException
header
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
Reference
HeaderSet Class
Add Overload
MailKit Namespace
Copyright © 2013-2023 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast