Click or drag to resize
MimeKit

HeaderSetRemove(String) Method

Remove the specified header.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public bool Remove(
	string header
)

Parameters

header  String
The header.

Return Value

Boolean
true if the specified header was removed; otherwise false.

Implements

ICollectionTRemove(T)
Exceptions
ExceptionCondition
ArgumentNullExceptionheader is null.
InvalidOperationException The operation is invalid because the HeaderSet is read-only.
Remarks
Removes the specified header if it exists.
See Also