Header SetRemove(Header Id) Method
Remove the specified header.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
if the specified header was removed; otherwise, .
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public bool Remove(
HeaderId header
)Parameters
- header HeaderId
- The header.
Return Value
Booleanif the specified header was removed; otherwise, .
Remarks
Removes the specified header if it exists.
Exceptions
| ArgumentOutOfRangeException | header is not a valid HeaderId. |
| InvalidOperationException | The operation is invalid because the HeaderSet is read-only. |