Header SetRemove(String) 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(
string header
)Parameters
- header String
- The header.
Return Value
Booleanif the specified header was removed; otherwise, .
Implements
ICollectionTRemove(T)Remarks
Removes the specified header if it exists.
Exceptions
| ArgumentNullException | header is . |
| InvalidOperationException | The operation is invalid because the HeaderSet is read-only. |