MailKit Documentation
MailKit Documentation
API Reference
MailKit
HeaderSet Class
HeaderSet Methods
Remove Method
Remove(HeaderId) Method
Remove(String) Method
Header
Set
Remove(String) Method
Remove the specified header.
Namespace:
MailKit
Assembly:
MailKit (in MailKit.dll) Version: 4.10.0
Syntax
C#
Copy
public
bool
Remove
(
string
header
)
Parameters
header
String
The header.
Return Value
Boolean
if the specified header was removed; otherwise,
.
Implements
ICollection
T
Remove(T)
Exceptions
Exception
Condition
ArgumentNullException
header
is
.
InvalidOperationException
The operation is invalid because the
HeaderSet
is read-only.
Remarks
Removes the specified header if it exists.
See Also
Reference
HeaderSet Class
Remove Overload
MailKit Namespace
Copyright © 2013-2025 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast