Header SetAdd(String) Method
Add the specified header.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
if the header was added to the set; otherwise, .
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public bool Add(
string header
)Parameters
- header String
- The header to add.
Return Value
Booleanif the header was added to the set; otherwise, .
Remarks
Adds the specified header to the set of headers.
Exceptions
| ArgumentNullException | header is . |
| InvalidOperationException | The operation is invalid because the HeaderSet is read-only. |