MailKit Documentation
MailKit Documentation
API Reference
MimeKit
HeaderList Class
HeaderList Methods
Add Method
Add(Header) Method
Add(HeaderId, String) Method
Add(String, String) Method
Add(HeaderId, Encoding, String) Method
Add(String, Encoding, String) Method
Header
List
Add(Header
Id, String) Method
Add a header with the specified field and value.
Namespace:
MimeKit
Assembly:
MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
Copy
public
void
Add
(
HeaderId
id
,
string
value
)
Parameters
id
HeaderId
The header identifier.
value
String
The header value.
Exceptions
Exception
Condition
ArgumentNullException
value
is
null
.
ArgumentOutOfRangeException
id
is not a valid
HeaderId
.
Remarks
Adds a new header for the specified field and value pair.
See Also
Reference
HeaderList Class
Add Overload
MimeKit Namespace
Copyright © 2013-2023 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast