HeaderSetRemove(HeaderId) Method

Remove the specified header.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public bool Remove(
	HeaderId header
)

Parameters

header  HeaderId
The header.

Return Value

Boolean
if 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.

See Also