Header SetAdd(Header Id) 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(
HeaderId header
)Parameters
- header HeaderId
- 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
| ArgumentOutOfRangeException | header is not a valid HeaderId. |
| InvalidOperationException | The operation is invalid because the HeaderSet is read-only. |