MimeEntityOnHeadersChanged Method

Called when the headers change in some way.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
protected virtual void OnHeadersChanged(
	HeaderListChangedAction action,
	Header? header
)

Parameters

action  HeaderListChangedAction
The type of change.
header  Header
The header being added, changed or removed.

Remarks

Whenever a header is added, changed, or removed, this method will be called in order to allow custom MimeEntity subclasses to update their state.

Overrides of this method should call the base method so that their superclass may also update its own state.

Exceptions

ArgumentNullException header must not be null when action is not Cleared.

See Also