MimeEntityDispose(Boolean) Method

Releases the unmanaged resources used by the MimeEntity and optionally releases the managed resources.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
protected virtual void Dispose(
	bool disposing
)

Parameters

disposing  Boolean
to release both managed and unmanaged resources; to release only the unmanaged resources.

Remarks

Releases resources owned directly by this entity. Structural children are disposed by Dispose before this method is called with disposing set to , even if a child's cleanup fails. Overrides should release only their own resources and call the base implementation, not dispose structural children or mutate the MIME tree.

See Also